I want to be able to run cgi scripts from other locations besides /var/www/cgi-bin, examples:
/var/www/folder1/cgi-bin
/var/www/folder2/cgi-bin
/var/www/folder3/cgi-bin
How do I go about configuring the server to do this?
EDIT: This is to run cgi scripts from a website on my personally hosted webserver.
ScriptAlias is your uncle.
From: http://httpd.apache.org/docs/2.2/mod/mod_alias.html#scriptalias
There are two ways to accomplish this:
1) Setup virtualhosts, and under each virtualhost, specify
ScriptAlias /cgi-bin/ "/your/location"
2) Create sub-folders under
/var/www/cgi-bin
and use the sub-folders to link to them, however with this method, you cannot leave the/var/www/cgi-bin
directory tree.