httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 40102] - SCRIPT_NAME set incorrectly with mod_rewrite
Date Thu, 03 Aug 2006 10:32:07 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40102>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40102





------- Additional Comments From martel@post.pl  2006-08-03 10:32 -------
As a CGI script for URL of: http://test.nebula.intranet/archive/2006/05 values 
are set to:

$_SERVER['DOCUMENT_ROOT'] = string(0) 
$_SERVER['SCRIPT_FILENAME'] = string(40) /var/www/localhost/htdocs/test/
index.cgi
$_SERVER['REQUEST_URI'] = string(16) /archive/2006/05
$_SERVER['SCRIPT_NAME'] = string(40) /var/www/localhost/htdocs/test/index.cgi
$_SERVER['PATH_INFO'] = string(16) /archive/2006/05

Should document root be empty? I don't have much experience with PHP working as 
a CGI script. I have added a handler to <VirtualHost> (AddHandler cgi-script
 .cgi), added ExecCGI to Options under <Directory> and changed RewriteRule to 
"RewriteRule ^(.*)$ /index.cgi/$1".

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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


Mime
View raw message