Modification of Nagios Documentation

Horvath Tamas zsitfa at t-online.hu
Wed Nov 23 21:52:49 CET 2005


Hi!

In the latest documentation there is a suggestion to use .htaccess files
(http://nagios.sourceforge.net/docs/2_0/cgiauth.html).

According to Apache2 documentation
(http://httpd.apache.org/docs/2.0/howto/htaccess.html#when): "In general,
you should never use .htaccess files unless you don't have access to the
main server configuration file."

I suggest to notice it in the documentation, because if someone is going to
install Nagios to a dedicated computer, he should not use .htacces (and pay
the performance penalty because o fit).

He just has to put something like this to his httpd.conf or equialent:


ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

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

Alias /nagios /usr/local/nagios/share

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

Thanks,
	Tamas!



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click




More information about the Developers mailing list