Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing cgi scrips

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How to make cgi scripts to execute anywhere in the server..
ie) apart from cgi-bin directory .i know there is a syntax we need to add in the httpd.conf i don't know what is it...
Thanks in advance for the help.
 
create an AddHandler directive such as the following:

AddHandler cgi-script .pl .cgi


Look thru your config file and there should already be an example that you need to uncomment and, perhaps, modify to the file extension you wish to use.

 
If you place an executable script in another directory you also have to add ExecCGI to the Options of that Directory container.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top