# this /path/to/apache | +---/cgi-bin | +---/htdocs # not this /path/to/apache | +---/htdocs | +---/cgi-bin # add to httpd.conf ScriptAlias /cgi-bin/ "/path/to/apache/cgi-bin/"