Apache - How to enable cgi access outside cgi bin folder, Execute perl script outside cgi-bin folder

How to enable cgi access outside cgi bin folder

CGI ACCESS OUTSIDE CGI-BIN FOLDER

If you like to add cgi or perl script outside the cgi-bin folder then try to add the below in .htaccess file.
Options +ExecCGI 
AddHandler cgi-script .cgi

By default cgi and perl files are supposed to be run from cgi-bin directory .

If you need to run cgi or pl files outside cgi-bin directory then you need to use a .htaccess file and input :
RewriteEngine On 
Options +FollowSymLinks 
Options ExecCGI Indexes 

AddHandler cgi-script .cgi .pl 

Add the above in your .htaccess file to execute cgi or perl script outside cgi-bin folder.

The topic on Apache - How to enable cgi access outside cgi bin folder is posted by - Veen

Hope you have enjoyed, Apache - How to enable cgi access outside cgi bin folderThanks for your time

Tech Bluff