httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yehuda Katz <yeh...@ymkatz.net>
Subject Re: [users@httpd] index.php ist used (internally) when /index.php/ is requested
Date Thu, 13 Nov 2014 15:32:04 GMT
This is usually the intended behavior. Many PHP frameworks use PATH_INFO to
handle requests.

See the documentation for AcceptPathInfo:
http://httpd.apache.org/docs/current/mod/core.html#acceptpathinfo

- Y

On Thu, Nov 13, 2014 at 10:25 AM, Christoph Gröver <grover@sitepark.com>
wrote:

>
> Hello list,
>
> Strange thing.
>
> If a request is made for a directory URL where the directory contains
> a .php then this request is translated to just the php file and php is
> executed. (/index.php/  -->  /index.php)
>
> In my opinion this should not happen. Since a directory is requested
> and index.php is not a directory but a file, there should be a default
> predefined directory index appended to it (index.php or index.html) and
> this should be delivered (if it exists) or a 404 should be sent back.
> ( /index.php/  --> /index.php/index.php )
>
> Does anybody know why this is happening and what is causing
> this behaviour?
>
> This at least happens with
> Apache 2.4.7 (distribution Mageia 4.1).
>
> I presume it is somewhere in the translation phase.
>
> Greetings,
>
> --
> Christoph Gröver
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
>

Mime
View raw message