LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] ScriptAlias for a vhost

[ILUG] ScriptAlias for a vhost

Phil phil at redbrick.dcu.ie
Fri May 5 01:08:52 IST 2000


Right basically I've got a vhost in httpd.conf that goes something along the
lines of..
<VirtualHost www.phil-the-nerd.org>
DocumentRoot /home/phil/public_html
ServerName www.phil-the-nerd.org
Options ExecCGI Includes Indexes FollowSymLinks
# To use CGI scripts:
AddHandler cgi-script .cgi
AddHandler cgi-script .py
AddHandler cgi-script .sh
AddHandler cgi-script .pl
# To use server-parsed HTML files
AddType text/html .shtml
AddHandler server-parsed .shtml
AddHandler server-parsed .html
ScriptAlias /cgi-bin/ /home/phil/public_html/cgi-bin/
Alias /include/ /home/phil/public_html/include/
Alias /img/ /home/phil/public_html/img/
</VirtualHost>

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
http://www.phil-the-nerd.org/cgi-bin/test.pl doesn't..
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 159.134.207.156] Premature end of
script headers: /home/phil/public_html/cgi-bin/test.pl

Unfortunatey I have crap all apache experience.
Phil.





More information about the ILUG mailing list
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


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!
RSS Version
Powered by Dell