|
|
自己编译的APACHE,在httpd.conf中已经加载了CGI模块,并且也已经配置好了
配置如下:
#
ScriptAlias /cgi/ "/opt/apache/cgi-bin/"
<IfModule mod_cgid.c>
#
# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
# for setting UNIX socket for communicating with cgid.
#
#Scriptsock logs/cgisock
</IfModule>
#
# "/opt/apache/cgi-bin" should be changed to whatever your ScriptAliased
# CGI directory exists, if you have that configured.
#
<Directory "/opt/apache/cgi-bin/">
AllowOverride None
Options ExecCGI -Indexes
Order allow,deny
Allow from all
</Directory>
# (You will also need to add "ExecCGI" to the "Options" directive.)
#
AddHandler cgi-script .cgi .pl
#
自己也在/cgi-bin/目录下建立了一个index.cgi文件,设定权限如下:
#chown root.root /opt/apahce/cgi-bin/
#chmod 711 /opt/apahce/cgi-bin/index.cgi
可是我用浏览访问自己建立的这个index.cgi文件时(http://自己建立的域名/cgi/),却老是提示我没有访问权限?
请问这是怎么回事呢? |
|