Click to See Complete Forum and Search --> : .CGI in Apache


mister_tilapia
10-16-2002, 06:42 PM
Help pls. Been trying to run CGI scripts in Apache but no luck ;(
I've uncommented this line in httpd.conf but it gives me
"No Permission to Access" error message.
AddHandler cgi-script .cgi

What else I am missing, what else do I need to add in my httpd.conf to enable perl scripting?

Tia,
MrT

blizz
10-17-2002, 05:13 PM
Hi,


You have uncommented the line : (add the .pl )

AddHandler cgi-script .cgi .pl

Have you added the script alias to virtualhost container for your domain?

ScriptAlias /cgi-bin/ /home/yourdomain/cgi-bin/

mister_tilapia
10-17-2002, 06:23 PM
I added this line in my httpd.conf and it is working now :)
<Directory /mydir/*/cgi-bin>
Options +ExecCGI
</Directory>