Chinaunix

标题: 问一个apache访问目录的问题 [打印本页]

作者: frlssimi    时间: 2006-10-19 17:17
标题: 问一个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
错误日志的内容是:

[Thu Oct 19 17:05:43 2006] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/local/apache/cgi-bin
[Thu Oct 19 17:06:21 2006] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/local/apache/cgi-bin
[Thu Oct 19 17:14:14 2006] [error] [client 127.0.0.1] attempt to invoke directory as script: /usr/local/apache/cgi-bin





我用ll -d看了这几个目录 ,都是drwxr-xr-x属性,没什么区别啊, 大家谁能告诉我到底为什么cgi-bin/ 如此特殊?




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2