由 再见理想 在 01-13-2004 10:51 发表:
加载CGI模块后说没有权限访问此页面?
自己编译的APACHE,在httpd.conf中已经加载了CGI模块,并且也已经配置好了
配置如下:
ScriptAlias /cgi/ "/opt/apache/cgi-bin/"
1<ifmodule mod_cgid.c="">
2
3#
4
5# Additional to mod_cgid.c settings, mod_cgid has Scriptsock <path>
6
7# for setting UNIX socket for communicating with cgid.
8
9#
10
11#Scriptsock logs/cgisock
12
13</path></ifmodule>
"/opt/apache/cgi-bin" should be changed to whatever your ScriptAliased
CGI directory exists, if you have that configured.
1<directory "="" apache="" cgi-bin="" opt="">
2
3AllowOverride None
4
5Options ExecCGI -Indexes
6
7Order allow,deny
8
9Allow from all
10
11</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/ ),却老是提示我没有访问权限?
请问这是怎么回事呢?
我是一名现役二级士官!!!!!!
曾经沧海(海)难为水(碎)
除却巫山(散)不是云(云)
------云散海碎
由 再见理想 在 01-13-2004 17:01 发表:
自己顶一下!!!!!!!
我是一名现役二级士官!!!!!!
曾经沧海(海)难为水(碎)
除却巫山(散)不是云(云)