-
-
Save jandanielcz/be0af83f7f96d6099664 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER | |
# Last Modified: 11-26-2005 | |
# | |
# 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 /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/" | |
<Directory "/usr/lib64/nagios/cgi-bin/"> | |
# 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/passwd | |
Require valid-user | |
</Directory> | |
Alias /nagios "/usr/share/nagios/html" | |
<Directory "/usr/share/nagios/html"> | |
# 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/passwd | |
Require valid-user | |
</Directory> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment