Bug#514123: [apache2] script_name inconsistency with Alias vs. AliasMatch
Package: apache2
Version: 2.2.9-10+lenny2
Severity: normal
--- Please enter the report below this line. ---
The Alias and AliasMatch directives cause different script_name's to be
set (in PHP $_SERVER).
Alias shows the desired behaviour and sets sth like:
/myapp
while
AliasMatch shows the full request path like:
/myapp/index.php/user/login
This does not conform to the CGI spec[1]
SCRIPT_NAME: A virtual path to the script being executed, used for self-
referencing URLs.
[1] http://hoohoo.ncsa.uiuc.edu/cgi/env.html
--- System information. ---
Architecture: amd64
Kernel: Linux 2.6.26-1-amd64
Debian Release: 5.0
990 testing www.debian-multimedia.org
990 testing security.debian.org
990 testing ftp.ch.debian.org
500 unstable ftp.ch.debian.org
1 experimental ftp.ch.debian.org
--- Package information. ---
Depends (Version) | Installed
=============================================-+-======================
apache2-mpm-worker (>= 2.2.9-10+lenny2) |
OR apache2-mpm-prefork (>= 2.2.9-10+lenny2) | 2.2.9-10+lenny2
OR apache2-mpm-event (>= 2.2.9-10+lenny2) |
--- Output from package bug script ---
List of enabled modules from 'apache2 -M':
actions alias auth_basic authn_file authz_default authz_groupfile
authz_host authz_user autoindex cgi dir env fcgid mime negotiation
perl php5 rewrite setenvif status
--
Thomas Koch, YMC AG, http://www.ymc.ch
Phone: +41 (0)71 / 508 24 86
Reply to: