----- Original Message -----
From: "Ross Hendry" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 15, 2001 12:34 AM
Subject: [scottish] Apache admin
> How can I make a cgi-bin/ directory in a users home actually execute cgi
> scripts? The server works fine seeing html files in ~/public_html/ but I
can't
> get it to execute files in the cgi dir. The only way I found round it was
to
> add another line to the conf file making a /user-cgi/ directory that
pointed to
> my personal cgi-bin. This then buggers up parts of the scripts. Help
please!
AFAICR, you can't do this on a global basis for all users, but you could
uncomment these lines in httpd.conf ...
AddType application/x-httpd-cgi .cgi
AddHandler cgi-script .cgi
... to enable out-of-cgi-bin-directory CGI execution for scripts with a .cgi
extension. Or attempt to use ScriptAlias in a .htaccess in all public_html
directories ...
You might find cgiwrap is more usable and secure for enabling CGI in
userspace
- http://cgiwrap.unixtools.org/
--
___ ___ __ _________ | William Anderson - www.well.com/~neuro
/ _ \/ -_) // / __/ _ \ | "This is your life, and it's ending one minute
/_//_/\__/\_,_/_/ \[EMAIL PROTECTED] at a time" -- Tyler Durden
--------------------------------------------------------------------
http://www.lug.org.uk http://www.linuxportal.co.uk
http://www.linuxjob.co.uk http://www.linuxshop.co.uk
--------------------------------------------------------------------