Page 3 of 3

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 9:44 am
by abrist
You have declared "AuthType Digest" which uses htdigest, whereas the default "AuthType Basic" uses htpasswd. Additionally, did you fix the ScriptAlias path?

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 11:18 am
by devilsguest
Here is the issue again.............When i give "AllowOverride None" it's not asking me for a password and directly I can see the web console. But, when I change it to "AllowOverried AuthConfig" password i enter is not being accepted and kicking me back with same error which we were struggling to solve.
[auth_basic:error]AH01617: user nagiosadmin: authentication failure for "/nagios/": Password Mismatch
I don't really understand why nagios is behaving so weird or the problem is with the newer version of webserver. I am sick to work on one environment since last 2 weeks. God would be the only one who might have known answer to this situation...... :oops:

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 11:35 am
by abrist
I just upgraded one of my core instances to apache 2.4.4 and the old (default) vhosts file works fine.
Did you fix the ScriptAlias path?
What does your vhost config look like at this point?

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 12:20 pm
by devilsguest

Code: Select all

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

<Directory "/usr/local/nagios/sbin/">
Options ExecCGI
AllowOverride AuthConfig
Require all granted
AuthName "Nagios Web Access"
AuthType Digest
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

ScriptAlias /nagios "/usr/local/nagios/share/"

<Directory "/usr/local/nagios/share/">
Options None
AllowOverride AuthConfig
Require all granted
AuthName "Nagios Web Access"
AuthType Digest
AuthUserFile /usr/local/nagios/etc/htpasswd.users
Require valid-user
</Directory>

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 1:42 pm
by devilsguest
where do i find this file called
"/nagios/"
what is it actually.....what type of file is it on core 3.4.4

Re: RE: Nagios Home Page

Posted: Thu Mar 28, 2013 2:38 pm
by sreinhardt
/nagios/ is actually referencing the virtual host directory, and tells apache what to retieve from the filesystem to get the proper files for that site. The line ScriptAlias /nagios "/usr/local/nagios/share/" States that referencing /nagios/ in your web browser will point apache to files in /usr/local/nagios/share/. The files contained inside of that folder are largely CGI scripts.