LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 812|回复: 0

在fb4.8配置apache cgi的一个问题

[复制链接]
发表于 2004-5-26 15:41:53 | 显示全部楼层 |阅读模式
我在apache 1.3.31中配置cgi以驱动一个论坛。
现在发现,当我输入:
http://ip/bbs/cgi-bin
时,apache 报 403,显示
Forbidden
You don't have permission to access /bbs/cgi-bin/ on this server.

error.log中显示
attempt to invoke directory as script: /usr/www/bbs/cgi-bin

但是,我输入http://ip/bbs/cgi-bin/index.cgi
就可以正常访问论坛。

httpd.conf中配置cgi的相关配置为:
ScriptAlias /bbs/cgi-bin/ "/usr/www/bbs/cgi-bin/"
<Directory "/usr/www/bbs/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
DirectoryIndex index.cgi index.html
</Directory>


请问,我如何才能实现输入:http://ip/bbs/cgi-bin时,系统自动选择
index.cgi或者index.html文件执行呢?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表