问一个apache访问目录的问题
我的httpd.conf 中,ServerRoot "/usr/local/apache"
DocumentRoot "/usr/local/apache"
在浏览器中输入: http://localhost/,,得到一个正常的目录列表:
Parent Directory 19-Oct-2006 13:39 -
: 18-Oct-2006 17:56 32k
bin/ 19-Oct-2006 05:53 -
cgi-bin/ 16-Oct-2006 15:15 -
conf/ 19-Oct-2006 16:58 -
htdocs/ 16-Oct-2006 15:31 -
icons/ 16-Oct-2006 15:22 -
include/ 16-Oct-2006 15:15 -
libexec/ 16-Oct-2006 15:15 -
logs/ 19-Oct-2006 08:12 -
man/ 16-Oct-2006 15:14 -
proxy/ 16-Oct-2006 15:15 -
点击均可进入,除了cgi-bin/ 这个目录,每当想进入该路迳时,总是显示403错误:
Forbidden
You don't have permission to access /cgi-bin/ on this serve
错误日志的内容是:
attempt to invoke directory as script: /usr/local/apache/cgi-bin
attempt to invoke directory as script: /usr/local/apache/cgi-bin
attempt to invoke directory as script: /usr/local/apache/cgi-bin
我用ll -d看了这几个目录 ,都是drwxr-xr-x属性,没什么区别啊, 大家谁能告诉我到底为什么cgi-bin/ 如此特殊? 遇到同样问题未解决
http://localhost/cgi-bin/
结果是:
Forbidden
You don't have permission to access /cgi-bin/ on this server.
但是如果输入全路径,可以访问
http://localhost/cgi-bin/index.cgi
结果是:
OK111111111111111111111111111111111111111111 看看你的httpd.conf文件配置中,是否目录相关设置有问题
页:
[1]