A problem with nagios authentication


My login does not work correctly

A Login window appeard and I inputed a correct password for the login.

But it says athentication fails.

There is no problem in htpasswd and htaccess configuration.

This is my .httpd.conf file.
Alias / /usr/local/nagios/share/
<Directory “/usr/local/nagios/share”>
Options FollowSymLinks
AllowOverride AuthConfig
Order allow,deny
Allow from all

This is my .htaccess file.

AuthName "Authentication"
AuthType Basic
AuthUserFile .htpasswd
require valid-user


and where is the .htpasswd file? try giving it an absoulte path.



htpasswd’location is the same as .htaccess’s location


so what? in which context is the apache process running? i doubt it runs in the nagios directory… so try giving it an absolute path to the .htpasswd file.



In other words, have a look at the docs.

You have not specified the correct location for the directive

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /usr/local/nagios/etc/htpasswd.users
require valid-user