[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] CGI PATH inconsistancy
- Subject: [cobalt-users] CGI PATH inconsistancy
- From: "Matthews, Graham" <gmatthews@xxxxxxxxxxxxxxx>
- Date: Mon Feb 14 16:09:28 2000
Hi, I've just bought a RAQ3 recently and am having
some strange behaviour occurring. It appears as
if the $PATH (as seen by a cgi script) is being
corrupted about 20% of the time.
In my srm.conf I've got:
# To use CGI scripts:
Action cgi-wrapper /cgiwrapDir/cgiwrap
#AddHandler cgi-wrapper .cgi
#AddHandler cgi-wrapper .pl
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
In my httpd.conf for a virtual host I've got:
<VirtualHost 0.0.0.0>
ServerName www.xxx.net.au
ServerAdmin site2
DocumentRoot /home/sites/site2/web
ServerAlias xxx.net.au xxx.* www.xxx.*
RewriteEngine on
RewriteCond %{HTTP_HOST} !^0.0.0.0(:80)?$
RewriteCond %{HTTP_HOST} !^www.xxx.net.au(:80)?$
RewriteRule ^/(.*) http://www.xxx.net.au/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site2/users/$1/web/$3
#SetEnv PATH /bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/bin/X11:/usr/X11R6/bin:/autonews
AddHandler cgi-script .cgi
AddHandler cgi-script .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
(xxx and 0.0.0.0 are really something else.)
I've got a perl .cgi in a cgi-bin directory in my site that
just prints out all the ENV variables. The path is corrupted
about 20% of the time, with the corruption being that the
"/bi" at the start of the PATH being replaced with same
(apparently random) set of 3 bytes.
This doesn't appear to be cache problem since I've tried the
script in several locations with the same results.
Setting the PATH in my virtual host doesn't appear to
make any difference.
Does anyone have any ideas? Is apache changing the path
somewhere or is it still going through a wrapper or
suexec or something?
Thanks
- Graham
--
Graham Matthews gmatthews@xxxxxxxxxxxxxxx
Software Engineer Phone: +613 9840 4466
Intracom Australia Fax: +613 9840 4489