> Right basically I've got a vhost in httpd.conf that goes
> something along the lines of..
>Well, first of all, you can save some space in your httpd.conf - it's fills
up fast, no matter how much you think it won't. Like, unless you need the
comments, lose 'em. Also, you can put all the extentions for AddHandler (for
the same type of handler that is) in the one directive:
Options ExecCGI Includes Indexes FollowSymLinks
AddHandler cgi-script .cgi .py .sh .pl
AddType text/html .shtml
AddHandler server-parsed .shtml .html
ScriptAlias /cgi-bin/ /home/phil/public_html/cgi-bin/
Alias /include/ /home/phil/public_html/include/
Alias /img/ /home/phil/public_html/img/
> Everything else works perfectly including the last two aliases
> apart from the cgi-bin when I do a
>http://localhost/~phil/cgi-bin/test.pl that works but
> errors I get when trying to accesss it via the web are an "Internal Server
> Error" (500).
>> Error I get in the webserver logs is...
> [Fri May 5 01:06:38 2000] [error] [client 18.104.22.168]
> Premature end of
> script headers: /home/phil/public_html/cgi-bin/test.pl
>Ordinarily I'd say it's an Apache permissions problem, but the fact that
you're getting a "Premature end of script headers" error implies that the
script is *trying* to run, but there's an error in there somewhere - a
missing semicolon or summat similar. But the fact that it runs in your
UserDir and dunt in the VirtualHost knocks that on the head. So I still
reckon it may be permissions. Did you set up the UserDir Directory with the
That'll probably screw it up anyway. If not though, the best thing is
probably to post your httpd.conf and the script saved with a .txt extenstion
on the web somewhere so we can have a look at it.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!