I've got apache 1.3.22 and the other day i thought it would be a good idea to setup some local virtual servers so I could locally test links etc. However when I try to run a PHP script on the virtual servers I get a Error 500 (note that normal html files work fine). PHP works fine on the normal "localhost" server it just wont work on the virtual hosts.

This is the error I get in the logs:

[Mon Nov 18 17:11:33 2002] [error] [client 127.0.0.1] Premature end of script headers: c:/php/php.exe

This is what the virtual host setup looks like in the apache config:

<VirtualHost 127.0.0.1>
ServerAdmin webmaster@rest
DocumentRoot "c:/Program Files/Apache Group/Apache/htdocs/rest"
ServerName rest
ServerAlias *.rest
ErrorLog logs/rest-error.log
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/"
<Directory "c:/Program Files/Apache Group/Apache/htdocs/rest">
Options All Includes Indexes
</Directory>
</VirtualHost>

What am I doing wrong?

    Write a Reply...