#1
  1. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Oct 2000
    Posts
    15
    Rep Power
    0
    Hi,

    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

    <VirtualHost ip>
    ServerName www.domain.com
    ServerAlias www.domaincom
    Alias /images/ /home/user/images/
    ScriptAlias /cgi-bin/ /home/user/cgi-bin/
    DocumentRoot /home/user/public_html
    ErrorLog logs/error_log
    TransferLog logs/transfer_log
    Group nobody
    </VirtualHost>

    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.

    Please help,

    Thanks.

    Helicon
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Sep 2000
    Location
    Melbourne, Victoria, Australia
    Posts
    104
    Rep Power
    14
    Hi,

    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");
    [/code]

    Hope that helps,

    Josh

IMN logo majestic logo threadwatch logo seochat tools logo