scriptalias error

Dustin deviousz at gmail.com
Thu Mar 9 05:37:12 CET 2006


Hello,

New user here, just following the documentation to setup on RHEL4. 
Installed vi RPM's, getting an error when I restart httpd after I've
added the configuration (modified for my system) to httpd.conf. 
Here's what I added:

ScriptAlias /nagios/cgi-bin/ "/usr/lib/nagios/cgi/"

<Directory "/usr/lib/nagios/cgi">
    Options ExecCGI
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /etc/nagios/htpasswd.users
    Require valid-user
</Directory>

Alias /nagios /usr/share/nagios/

<Directory "/usr/share/nagios/">
    Options None
    AllowOverride None
    Order allow,deny
    Allow from all
    AuthName "Nagios Access"
    AuthType Basic
    AuthUserFile /etc/nagios/htpasswd.users
    Require valid-user
</Directory>

And I get this message when restarting httpd:

The ScriptAlias directive in /etc/httpd/conf/httpd.conf at line 546
will probably never match because it overlaps an earlier ScriptAlias.

When i comment out these 2 lines the daemon restarts clean:

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

Ideas?

TIA,
dustin


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list