# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER
#
# This file contains examples of entries that need
# to be incorporated into your Apache web server
# configuration file.  Customize the paths, etc. as
# needed to fit your system.

ScriptAlias /cgi-bin/nagios "/var/www/cgi-bin/nagios"

<Directory "/var/www/cgi-bin/nagios">
#  SSLRequireSSL
   Options ExecCGI

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

   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Directory>

Alias /nagios "/var/www/nagios"

<Directory "/var/www/nagios">
#  SSLRequireSSL
   Options None
   AllowOverride None

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

   Order deny,allow
   Deny from all
   Allow from 127.0.0.1
</Directory>

