全部博文(271)
分类: 系统运维
2012-06-14 11:01:26
This occurs when Apache is configured with ScriptAlias or SetHandler and a request is made for a directory path. The problem is that under those circumstances, all resources under a certain path are considered to be executable.
To get around this and allow DirectoryIndex to work again, use AddHandler with Options ExecCGI, or SetHandler in a
For example, replace this:
ScriptAlias /cgi-bin /var/www/cgi-bin
with this:
Alias /cgi-bin /var/www/cgi-bin
AddHandler cgi-script cgi pl
Options ExecCGI