LinuxSir.cn,穿越时空的Linuxsir!

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

关于cgi的问题

[复制链接]
发表于 2003-2-24 15:55:10 | 显示全部楼层 |阅读模式
我装好了RH8,看到HTTPD.CONF文件里有CGI-BIN的选项,但是,在浏览器里敲http://localhost/cgi-bin/,但是出现错误:

Forbidden

You don't have permission to access /cgi-bin/ on this server.

Apache/2.0.40 Server at _default_ Port 80

上面说我煤油权限访问/cgi-bin/,我怎样设置权限呢???
发表于 2003-2-24 16:46:20 | 显示全部楼层
 楼主| 发表于 2003-2-24 17:13:41 | 显示全部楼层
我看了,在httpd.conf里有这个,但是,还是不行???
<Directory "/var/www/cgi-bin">
        Options ExecCGI

        AllowOverride None
        Allow from from all


        Order allow,deny
</Directory>
发表于 2003-2-24 17:36:35 | 显示全部楼层
这个是正常的...你要执行文件才可以...
 楼主| 发表于 2003-2-24 17:53:39 | 显示全部楼层
能不能给一小段代码,让我实验一下,我不会CGI,不好意思!!
 楼主| 发表于 2003-2-24 18:25:47 | 显示全部楼层
Internal Server Error


The server encountered an internal error or misconfiguration and was unable to complete your request.


Please contact the server administrator, lzw@cy1.xj.cnpc.com.cn and inform them of the time the error occurred, and anything you might have done that may have caused the error.


More information about this error may be available in the server error log.

Apache/2.0.40 Server at _default_ Port 80

这是什么原因呀???
 楼主| 发表于 2003-2-27 15:59:21 | 显示全部楼层
我将cgi-bin目录的.cgi文件都改成755了,怎么还不行??

这里没有人能够解决该问题吗??
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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