November 10th, 2000, 11:36 PM
Another question related to VirtualHosting.
I've tried and tried, read the documentation and FAQ on this subject from http://www.apache.org, but I still can't fix the problem.
I can not get the cgi-bin on my VirtualHosted sites to work for some reason.
The virtualhost block on my http.conf looks like this
Alias /images/ /home/user/images/
ScriptAlias /cgi-bin/ /home/user/cgi-bin/
The .cgi programs runs fine in shell, but whenever I tried to run it from Web Browser, it gives me Premature end of script header error.
November 11th, 2000, 05:56 AM
I'm pretty sure your ScriptAlias commands should have double quotes around the second arguement.
Also, try a SIMPLE perl script that you can be sure would work instead of anything complex... like
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>#!/path/to/perl
print("Content-type: text/htmlnnhello world");
Hope that helps,