Originally posted by l008com:
Code:
<VirtualHost *>
ServerName server.com
ServerAlias www.server.com
Options ExecCGI Indexes Includes
ServerAdmin user@server.com
DocumentRoot /webfolder/server
ErrorLog /path/to/error_log.txt
ErrorDocument 404 404.html
XBitHack on
</VirtualHost>
What version of Apache are you using?
Anyway, I am no Apache expert, but I though you had to add a ScriptAlias line to each virtual host, like:
Code:
ScriptAlias /pathToCgi-binOnWeb/ /pathToCgi-binOnServer/
for example my config looks like:
Code:
ScriptAlias /cgi-bin/ /var/www/notyourtypical.com/cgi-bin/
I never messed with the ExecCGI options within Virtual Host containers, because ExecCGI is on for all hosts by default, and I never figures why I would turn them off for some. But I admin both sites on the server, so I don't have to worry about who I want to have running CGI scripts.
I hope this helps!
Regards,
Ben