[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-users] cgi wrapper inconsistency (RaQ3i)
- Subject: [cobalt-users] cgi wrapper inconsistency (RaQ3i)
- From: Ian Fantom <ian@xxxxxxxxxxxxxxxxxx>
- Date: Tue Feb 6 04:29:42 2001
- Organization: mintex
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
I have set up the following test configuration:
.../site4/web/cgi-bin/test.cgi [1]
.../site4/cgi-bin/test.cgi [2]
and configured my httpd.conf to recognise [2], with Group site4
in the Virtual section.
If I set test.cgi [2] to an invalid owner, the wrapper returns a
message "User not Privlidged." (as expected, except for the spelling).
If I set test.cgi [2] to a valid owner, then test.cgi [1] is
executed (returning a different test message from test.cgi [2]).
If I remove test.cgi [1] then the wrapper returns an error
"script not found".
Why?!
How is it possible for the wrapper to test for one location of the
script, but execute the other?
The httpd.conf file contains:
In the global part:
--------------------------------------
* Enabling cgi-bin and cgi-bin-secure outside the web space:
> <Directory /home/sites/*/web>
> AllowOverride None
> Options Includes MultiViews SymLinksIfOwnerMatch
> allow from all
> </Directory>
>
> <Directory /home/sites/*/cgi-bin>
> AllowOverride None
> Options ExecCGI Includes MultiViews SymLinksIfOwnerMatch
> allow from all
> </Directory>
>
> <Directory /home/sites/*/cgi-bin-secure>
> AllowOverride None
> Options ExecCGI Includes MultiViews SymLinksIfOwnerMatch
> allow from all
> </Directory>
---------------------------------------------------
The declaration for the virtual host in question is:
---------------------------------------------------
<VirtualHost 213.48.200.153>
ServerName www.espviva.org
ServerAdmin admin
DocumentRoot /home/sites/site4/web
Alias /cgi-bin /home/sites/site4/cgi-bin
Alias /cgi-bin-secure /home/sites/site4/cgi-bin-secure
ServerAlias espviva.org
RewriteEngine on
RewriteCond %{HTTP_HOST} !^213.48.200.153(:80)?$
RewriteCond %{HTTP_HOST} !^www.espviva.org(:80)?$
RewriteRule ^/(.*) http://www.espviva.org/$1 [L,R]
RewriteOptions inherit
AliasMatch ^/~([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
AliasMatch ^/users/([^/]+)(/(.*))? /home/sites/site4/users/$1/web/$3
Group site4
AddHandler cgi-wrapper .cgi
AddHandler cgi-wrapper .pl
#AddHandler cgi-script .cgi
#AddHandler cgi-script .pl
AddHandler server-parsed .shtml
AddType text/html .shtml
</VirtualHost>
-----------------------------------------------------
If I let in the cgi-script handler rather than the cgi-wrapper, then
the script runs perfectly, but I'd rather not do that.
Regards,
Ian.
--
**********************************************************************
Ian Fantom - Mintex Computer Services Ltd
ian@xxxxxxxxxxxxxxxxxx
http://www.mintex.demon.co.uk/ian
Tel: 01635 38592
***********************************************************************