文章详情

  • 游戏榜单
  • 软件榜单
关闭导航
热搜榜
热门下载
热门标签
php爱好者> php文档>DirectoryAsScript

DirectoryAsScript

时间:2007-07-11  来源:opbsder

Attempt to invoke directory as script

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 <Files> stanza.

For example, replace this:

ScriptAlias /cgi-bin /var/www/cgi-bin 

with this:

Alias /cgi-bin /var/www/cgi-bin <Directory /var/www/cgi-bin> AddHandler cgi-script cgi pl Options ExecCGI </Directory> 
相关阅读 更多 +
排行榜 更多 +
汪汪队救援世界全解锁版免费

汪汪队救援世界全解锁版免费

休闲益智 下载
忍者信条内置菜单mod

忍者信条内置菜单mod

冒险解谜 下载
忍者信条无限金币钻石版

忍者信条无限金币钻石版

冒险解谜 下载