ServerAdmin root@nagios
ServerName nagios
# DocumentRoot: The directory out of which you will serve your
# documents. By default, all requests are taken from this directory, but
# symbolic links and aliases may be used to point to other locations.
DocumentRoot /usr/share/nagios
# if not specified, the global error log is used
ErrorLog /var/log/apache2/nagios-error_log
CustomLog /var/log/apache2/nagios-access_log combined
# don't loose time with IP address lookups
HostnameLookups Off
# needed for named virtual hosts
UseCanonicalName Off
# configures the footer on server-generated documents
ServerSignature On
ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi"
# 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
#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