- 论坛徽章:
- 0
|
我的操作系统是REDHAT8.0,apache默认安装的。我今天下载了一个cgi程序,我把它放到/var/www/cgi-bin/目录下,在ie里输入:
http://myip/cgi-bin/index.pl
显示:
Server error!
The server encountered an internal error and was unable to complete your request.
Error message:
Premature end of script headers: htmltext.pl
If you think this is a server error, please contact the webmaster
Error 500
211.***.18.154
Sun 29 Jun 2003 07:57:30 AM CST
Apache/2.0.40 (Red Hat Linux)
看了是apache没有配置不支持cgi
于是我找着网上的一篇文章配置了http.conf文件:
<Directory "/var/www/cgi-bin">;
AllowOverride None
Options ExecCGI <----------加上了这句
Options None
Order allow,deny
Allow from all
</Directory>;
可还是不行呀。
有什么更简单的方法让apahce支持cgi吗?或许是我配置错了,希望大家给我出点主意,我是一只小菜鸟呀 |
|