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.