I'm using apache 1.3.22 running in a Mandrake 8.1 system.
I'm setting up a number of named virtual servers some of which use some CGI, the problem arises when I try a cgi: I always got

http://aaa.bbb.ccc/cgi-bin/hello.sh
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Apache-AdvancedExtranetServer/1.3.22 Server  Port 80

the configuration statements about CGI are: ( commonhttpd.conf  )

    ScriptAlias /cgi-bin/ /var/www/cgi-bin/
    ScriptAlias /protected-cgi-bin/ /var/www/protected-cgi-bin/

and  (  Vhosts.conf  )

NameVirtualHost 192.168.1.177

<VirtualHost 192.168.1.177>
User aaaa
Group aaaa
DocumentRoot /home/aaaa/public_html
ScriptAlias /cgi-bin/ /home/aaaa/cgi/
ServerName aaa.bbb.ccc
ErrorLog /home/aaaa/error_log
</VirtualHost>

the error log states:

[Tue Jan  1 23:42:39 2002] [error] [client 192.168.1.6] Premature end of script headers: /home/mrtg/cgi/hello.sh


If I modify Vhosts.conf mantaining only the ScriptAlias statemnet and deleting the VirtualHost statements the cgi is correctly executed.
What is the problem in my configuration?

----------------------------------------
Alberto Passariello
      Byte Works Sistemi S.r.l.
Cisco Systems partner Premier certified
           Viale Liegi 44,
             00198 Roma
Tel: +39 6 863.863.22
Fax: +39 6 863.863.23
Email: [EMAIL PROTECTED]
-----------------------------------------------

Reply via email to