在VirtualHost堻]定如下:
NameVirtualHost 192.168.1.6
<VirtualHost 192.168.1.6>
ServerAdmin [email protected]
DocumentRoot /home/123
ServerName www.123.com
ScriptAlias /cgi-bin/ /home/123/cgi-bin/
ErrorLog logs/www.123-error_log
CustomLog logs/www.123.com-access_log common
</VirtualHost>
我的想在httpd.conf只堻]定VirtualHost來跑自己網站及CGI,而不想更改原本的設定,但是在跑CGI時老是出錯。
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堛構gi檔更換755,777,644等屬性都是出錯,請問是甚麼原因
書籤