httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Mihailescu <b...@ece.mcgill.ca>
Subject CGI for User homes
Date Thu, 13 Jun 2002 18:59:37 GMT
For the life of me I don't understand what method I should use to allow 
all our NIS users to execute cgi scripts (.cgi & .pl) from their www 
space (~username/www/cgi-bin/).

I've used this methods so far:

================================

<IfModule mod_userdir.c>
     UserDir www
</IfModule>

<Directory /home/*/www/cgi-bin>
     Options ExecCGI
     SetHandler cgi-script
</Directory>

================================

ScriptAliasMatch ^/~([^/]*)/cgi-bin(.*) /home/$1/cgi-bin/$2
ScriptLog "|/opt/local/apache1.3.24/bin/rotatelogs 
/opt/local/apache1.3.24/logs/cgi_log

     #
     # "/opt/local/apache1.3.24/cgi-bin" should be changed to whatever 
your ScriptAliased
     # CGI directory exists, if you have that configured.
     #
     #<Directory "/opt/local/apache1.3.24/cgi-bin">
     <Directory "/home/$1/cgi-bin/$2">
         AllowOverride All
         Options None
         Order allow,deny
         Allow from all
     </Directory>

</IfModule>
# End of aliases.

I'm getting either 404s or 403s. If I run the scripts from the 
DocumentRoot /home/admin/www/cgi-bin they run fine, so far...

What am I doing wrong?

Tx, Ben


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


Mime
View raw message