You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Jack Swan <jo...@oracle.com.INVALID> on 2024/07/01 18:44:52 UTC

[users@httpd] DirectoryIndex broken in Apache 2.4.60?

Have an existing application and Apache installation (have been using Apache for years).

Upgraded Apache from 2.4.59 to 2.4.60 today and the browser prompts to save the index.php file instead of
serving/processing it when just entering https://<servername> as the URL.  This had been working fine for years
up until upgrading to 2.4.60.

The change notes for 2.4.60 reference some new rewrite rule flags, specifically  UnsafeAllow3F and UnsafePrefixStat
could these now be needed or there some other configuration change needed?

Do I need a simple Rewrite rule and can someone suggest one?

Thanks,

John Swan

[users@httpd] Re: [External] : Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?

Posted by Jack Swan <jo...@oracle.com.INVALID>.
thank you everyone.  Changes made and they work.

Point taken about being invalid for 15 years.  I inherited an old application/setup.

Again, thank you all.
________________________________
From: Frank Gingras <th...@apache.org>
Sent: Monday, July 1, 2024 3:03 PM
To: users@httpd.apache.org <us...@httpd.apache.org>
Subject: [External] : Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?



On Mon, Jul 1, 2024 at 2:53 PM Eric Covener <co...@gmail.com>> wrote:
On Mon, Jul 1, 2024 at 2:51 PM Matthew Goebel <mg...@emich.edu.invalid> wrote:
>
> Going from 2.4.59 to 2.5.60 I had to make the following change in my httpd.conf file.
>
> AddType application/x-httpd-php .php
>
> to
>
> AddHandler application/x-httpd-php .php

Thanks Matthew, this makes perfect sense. I will add this to the changelogs.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org<ma...@httpd.apache.org>
For additional commands, e-mail: users-help@httpd.apache.org<ma...@httpd.apache.org>


To be fair, this has been invalid for at least 15 years:

AddType application/x-httpd-php .php



Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?

Posted by Frank Gingras <th...@apache.org>.
On Mon, Jul 1, 2024 at 2:53 PM Eric Covener <co...@gmail.com> wrote:

> On Mon, Jul 1, 2024 at 2:51 PM Matthew Goebel <mg...@emich.edu.invalid>
> wrote:
> >
> > Going from 2.4.59 to 2.5.60 I had to make the following change in my
> httpd.conf file.
> >
> > AddType application/x-httpd-php .php
> >
> > to
> >
> > AddHandler application/x-httpd-php .php
>
> Thanks Matthew, this makes perfect sense. I will add this to the
> changelogs.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>
To be fair, this has been invalid for at least 15 years:

AddType application/x-httpd-php .php

Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 1, 2024 at 2:51 PM Matthew Goebel <mg...@emich.edu.invalid> wrote:
>
> Going from 2.4.59 to 2.5.60 I had to make the following change in my httpd.conf file.
>
> AddType application/x-httpd-php .php
>
> to
>
> AddHandler application/x-httpd-php .php

Thanks Matthew, this makes perfect sense. I will add this to the changelogs.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?

Posted by Matthew Goebel <mg...@emich.edu.INVALID>.
Going from 2.4.59 to 2.5.60 I had to make the following change in my
httpd.conf file.

AddType application/x-httpd-php .php

to

AddHandler application/x-httpd-php .php


Thanks,

Matt



On Mon, Jul 1, 2024 at 2:45 PM Jack Swan <jo...@oracle.com.invalid>
wrote:

> Have an existing application and Apache installation (have been using
> Apache for years).
>
> Upgraded Apache from 2.4.59 to 2.4.60 today and the browser prompts to
> save the index.php file instead of
> serving/processing it when just entering https://<servername> as the
> URL.  This had been working fine for years
> up until upgrading to 2.4.60.
>
> The change notes for 2.4.60 reference some new rewrite rule flags,
> specifically  UnsafeAllow3F and UnsafePrefixStat
> could these now be needed or there some other configuration change needed?
>
> Do I need a simple Rewrite rule and can someone suggest one?
>
> Thanks,
>
> John Swan
>


-- 
Matthew Goebel : m <go...@emunix.emich.edu>goebel@emich.edu : Unix Jockey
@ EMU : Hail Eris
Neo-Student, Net Lurker, Donut consumer, and procrastinating medher...
 "Always with the negative waves, Moriarty" - Oddball
 "Comfort the troubled, and trouble the comfortable." - Dietrich Bonhoeffer

Re: [users@httpd] DirectoryIndex broken in Apache 2.4.60?

Posted by Eric Covener <co...@gmail.com>.
On Mon, Jul 1, 2024 at 2:45 PM Jack Swan <jo...@oracle.com.invalid> wrote:
>
> Have an existing application and Apache installation (have been using Apache for years).
>
> Upgraded Apache from 2.4.59 to 2.4.60 today and the browser prompts to save the index.php file instead of
> serving/processing it when just entering https://<servername> as the URL.  This had been working fine for years
> up until upgrading to 2.4.60.
>
> The change notes for 2.4.60 reference some new rewrite rule flags, specifically  UnsafeAllow3F and UnsafePrefixStat
> could these now be needed or there some other configuration change needed?
>
> Do I need a simple Rewrite rule and can someone suggest one?

Do you have existing rewrites applying here? Or SetHandler or AddType
related to PHP?
Please share what you can from the config.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org