Premature end of script headers

Webmaster - Finn Networks webmaster at finn.ws
Mon Nov 17 11:02:17 CET 2003


Hello Everyone:

I've been having a bit of problems setting up Version 1-1. I have tried 
several things to get the error Premature end of script headers to go 
away and allow me to run nagios.

Setup:
Nagios 1.1-5 Installed from nagios-1.1-5.dag.rh73.i386.rpm
Nagios Plugins (latest version again rpm)

Shared: /usr/share/nagios
Conf: /etc/nagios
CGI /usr/lib/nagios/cgi
Plugins: /usr/lib/nagios/plugins

Configuration - OK, Nagios starts via the init.d startup script without 
errors or warnings.

httpd.conf has Auth set for /usr/share/nagios but NOT /usr/lib/nagios/cgi

httpd.conf additons:
<Directory "/usr/share/nagios/">
    Options None
    AllowOverride AuthConfig
    Order allow,deny
    Allow from all
</Directory>

<Directory "/usr/lib/nagios/cgi/">
    AllowOverride All
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

ScriptAlias /nagios/cgi-bin/ /usr/lib/nagios/cgi/
Alias /nagios/ /usr/share/nagios/


I've used the RPM installed cgi's and I have built the CGI's from the 
tarball. Everything was done locally on this machine so there is not 
problems like moving it around from windows to *unix.

This is ALL cgi files too, so it's not the libgd problem and the 
documentation and homepage work along with the links frame.

I get the awful 500 error screen and error_log  reads :  Premature end 
of script headers


Does anyone know what is going on?

Regards,

Anders Finn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031117/c6c09bf8/attachment.html>


More information about the Users mailing list