關於Apache2+CGI問題

由 airwave 在 11-19-2003 16:25 发表:

關於Apache2+CGI問題

我想在httpd.conf只裏設定VirtualHost來跑自己網站及CGI,而不想更改原本的設定,但是在跑CGI時老是出錯。

> quote: > > * * * > > Server error!
>
> The server encountered an internal error and was unable to complete
>
>
>
> your request.
>
> Error message:
>
> Premature end of script headers: perl.cgi
>
> If you think this is a server error, please contact the webmaster
>
> Error 500
>
> Apache/2.0.40 (Red Hat Linux)
>
> > > * * *

我試過把cgi-bin裏的cgi檔更換755,777,644等屬性以及上傳過別的CGI程式都是出錯,請問是甚麼原因

跑CGI是否要修改 perl.conf 或是其他方面?

而我用rpm -qi perl

是已安裝perl 5.8 版本

這是我的httpd.conf檔,我真的搞不清是哪有問題,麻煩大大們看看。<br /

Published At
Categories with 服务器类
Tagged with
comments powered by Disqus