My scripts in cgi-bin directory not working, how do I troubleshoot this problem?

Posted on in Categories last updated March 31, 2006

You need to add ScriptAlias directive to your httpd.conf file. By default Apache server try to locate file from /var/www/cgi-bin (RedHat/Fedora Linux) or /usr/lib/cgi-bin (Debian Linux).
Add following line to your domain configuration (vhost):

ScriptAlias /cgi-bin/ “/home/httpd/cyberciti.biz/httpdocs/cgi-bin/”

See also:

Leave a Comment