I have some sort of server miss configuration. I'm hoping someone can point out where I went wrong…
I followed these installation steps for Ubuntu:
http://assets.nagios.com/downloads/nagi ... Source.pdf
But the command '
Code: Select all
htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadminI then adjusted my installation slightly based off this 12.04 LTS tutorial: http://ubuntuforums.org/showthread.php?t=1986743
This moved my htpasswd.users file to /etc/nagios/htpasswd.users. These adjustments are appropriately reflected in my /etc/apache2/conf.d/nagios.conf file:
I was then able to use 'ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
<Directory "/usr/local/nagios/sbin">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Alias /nagios "/usr/local/nagios/share"
<Directory "/usr/local/nagios/share">
# SSLRequireSSL
Options None
AllowOverride None
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>
Code: Select all
htpasswd -c /etc/nagios/htpasswd.users nagiosadminls -la /etc/nagios reveals:
Permissions seem fine.-rw-rw-r-- 1 nagios nagios 11659 Jun 13 01:10 cgi.cfg
-rw-r--r-- 1 nagios nagios 50 Jun 13 01:25 htpasswd.users
-rw-rw-r-- 1 nagios nagios 43989 Jun 13 01:10 nagios.cfg
drwxrwxr-x 2 nagios nagios 4096 Jun 13 01:13 objects
-rw-rw---- 1 nagios nagios 1340 Jun 13 01:10 resource.cfg
When I navigate to <my_ip_address>/nagios I get an Apache login dropdown (awesome) - but when I type in my username and password (both nagiosadmin) I get a file:// and Safari downloads an html file called 'nagios', containing the attached.
Anyone know where I went wrong? Really appreciate the insight.