View Single Post
Old 02-22-2006, 09:56 PM   #4 (permalink)
oulzac
Junior Member
 
Join Date: Feb 2006
Posts: 10
Default Re: httpd.conf to allow .pl or .cgi scripts to run outside of cgi-bin

Quote:
Originally Posted by vvaldir
You may need to change the AddHandler line in your httpd.conf file to run perl scripts.

From:
#AddHandler cgi-script .cgi

To:
AddHandler cgi-script .cgi .pl

That may help solve the problem you have currently.
That will only work if the server is set to run .cgi files outside the cgi-bin folder.

To set where cgi's can run, in the httpd.conf file you will see this line (per virtual host):
PHP Code:
ScriptAlias /cgi-bin/ /home/username/public_html/cgi-bin

you can change this to:
PHP Code:
ScriptsAlias / /home/username/public_html

This will allow and folder under the public_html folder to run a cgi script.

But remember, if its .pl file, this does not matter, a perl file will run outside the cgi-bin folder by defualt.
oulzac is offline   Reply With Quote
Sponsored Links