CGI magic help
Jason Riedel
plug-discuss@lists.plug.phoenix.az.us
Tue, 3 Jun 2003 18:33:20 -0700
Don,
Try after your #!/usr/bin/perl to insert the following if you don't already
have it....
print <<EOF;
Content-type: text/html
EOF
continue with perl/cgi code.
If this doesn't work, just paste your test2.pl code.
Thanks,
Jason Riedel
Internet Engineer
CableOne.Net Internet Services
----- Original Message -----
From: "Don Calfa" <tvat3000@netscape.net>
To: <plug-discuss@lists.plug.phoenix.az.us>
Sent: Tuesday, June 03, 2003 5:24 PM
Subject: CGI magic help
> Running out of box RH8 Apache 2.0.40. You guys helped me with VHOSTS
> and that works great. Figured out some other stuff to almost get it
> where I want it except for this last straw.
>
> I've scoured the apache docs and the ones included on the server to see
> why my cgi doesn't work and I maybe need someone to tell me where to
> look. I have the test scripts that work on other servers so I know that
> the scripts work.
>
> <VirtualHost 10.0.0.20>
> DocumentRoot /Volume2m/Websites/website3.com
> ServerName website3.com
> ServerAlias ww.website3.com az.website3.com
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-agent}i\""
> comonvhost
> CustomLog /Volume2m/Websites/Logfiles/website3.com/access_log "comonvhost"
> ErrorLog /Volume2m/Websites/Logfiles/website3.com/error_log
> LogLevel debug
> ScriptAlias /cgi-bin/ "/Volume2m/Websites/website3.com/cgi-bin/"
> </VirtualHost>
>
> I have the scripts located in the correct directory, permissions are set
> to read and execute.
> All I get is:
>
>
> Server error!
>
> The server encountered an internal error and was unable to complete
> your request.
>
> Error message:
> Premature end of script headers: test2.pl
>
>
> Yet the same script works in M$ IIS5.
>
>
> ---------------------------------------------------
> PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
> To subscribe, unsubscribe, or to change you mail settings:
> http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss
>