[cgiwrap-users] SCRIPT_NAME env variable
Brought to you by:
nneul
From: Gary W. <gw...@pl...> - 2005-05-20 16:33:35
|
Hi! I am having some issues in beta testing with my new CGI solution - it is using Apache and mod rewrite to make all PHP files get parsed as a CGI binary, through CGI_WRAP. Test users however are complaining that several environment variables are getting mangled through the solution, which is preventing certain script packages install scripts from working correctly. The first report was SCRIPT_NAME being prepended with the username e.g. /testuser1/phpinfo.php when it _should_ read just phpinfo.php After a bit of testing, it seems it is CGI_WRAP adding this info in (presumably to allow things to work in a flat virtualhost environment or similar?) But it seems to be tripping my users up on my solution. Can someone confirm that the code in util.c which starts with the comment "Set the correct SCRIPT_NAME environment variable" is in fact doing the mangling I refer to, and if so, is this behaviour configurable, or shall I just tweak the c code to do what I need? Thanks Gary |