# 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. RewriteEngine On RewriteRule ^/$ /nagios/index.php [R] ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi-bin" # SSLRequireSSL Options +ExecCGI AllowOverride All AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/passwd # Apache 2.4 Require all granted # Require local Require valid-user # Apache 2.2 Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 Require valid-user Alias /nagios "/usr/share/nagios/html" # SSLRequireSSL Options None AllowOverride None AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/passwd # Apache 2.4 Require all granted # Require local Require valid-user # Apache 2.2 Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 Require valid-user