Auth issuses


I just wanted to say that i’m pretty new at linux and especially nagios, i’v been working on this for probably at least 50 hrs and going no where.
To make things easier on my i have been using the Debian testing load.
I load up the OS then run the command
apt-get install nagios2 nagios2-plugin
it downloads and configures nagios2 and apache2
when it runs i got 500 internal server error, upon viewing the logs it stated that the htpasswd.users file can not be found in /etc/nagios2/
i ran the command
httpasswd -c /etc/nagios2/htpasswd.users nagiosadmin
it creates the file and you can see the nagios admin entry
i have also tryed
chmod 777 /etc/nagios2/htpass.users
Then when i try to go to the web interface i am prompted for the user name and password, but nothing works!!!
if i comment out the authentication command in the apache config and i change cgi.cfg to not require authentication i can get in to the web interface just i am not able to use and commands from it
I have included a code of the apache file

[code]# apache configuration for nagios 2.x

note to users of nagios 1.x:

throughout this file are commented out sections which preserve

backwards compatibility with bookmarks/config for nagios 1.x. simply

look for lines following “nagios 1.x:” comments.

ScriptAlias /cgi-bin/nagios2 /usr/lib/cgi-bin/nagios2
ScriptAlias /nagios2/cgi-bin /usr/lib/cgi-bin/nagios2

nagios 1.x:

#ScriptAlias /cgi-bin/nagios /usr/lib/cgi-bin/nagios2
#ScriptAlias /nagios/cgi-bin /usr/lib/cgi-bin/nagios2

Where the HTML pages live

Alias /nagios2 /usr/share/nagios2/htdocs

nagios 1.x:

#Alias /nagios /usr/share/nagios2/htdocs

<DirectoryMatch (/usr/share/nagios2/htdocs|/usr/lib/cgi-bin/nagios2)>
Options FollowSymLinks

AllowOverride AuthConfig
Order Allow,Deny
Allow From All

AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios2/htpasswd.users
# nagios 1.x:
#AuthUserFile /etc/nagios/htpasswd.users
require valid-user

Where the stylesheets (config files) reside

#Alias /nagios2/stylesheets /etc/nagios2/stylesheets

nagios 1.x:

#Alias /nagios/stylesheets /etc/nagios2/stylesheets

any help will be greatly appreciated :wink:


Replied in other forum.