Chinaunix首页 | 论坛 | 博客
  • 博客访问: 2549272
  • 博文数量: 271
  • 博客积分: 6659
  • 博客等级: 准将
  • 技术积分: 3141
  • 用 户 组: 普通用户
  • 注册时间: 2009-11-17 10:24
文章分类

全部博文(271)

文章存档

2016年(2)

2015年(12)

2014年(7)

2013年(19)

2012年(22)

2011年(81)

2010年(128)

分类: 系统运维

2012-06-14 11:01:26

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


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

阅读(2701) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~