Re: index.php ist used (internally) when /index.php/ is requested

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux