I’d like to run cgi’s from anywhere in my site – not just the cgi-bin directory.

2 June, 2005 (16:31) | CGI, htaccess | By: sblogadmin

Question :

I’d like to run cgi’s from anywhere in my site – not just the cgi-bin directory.

Answer :

Create a .htaccess file and add the lines:

AddHandler cgi-script .pl
AddHandler cgi-script .cgi

to it.

Add other AddHandler statements if you are using different file extensions.

Write a comment