# 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"

<Directory "/usr/lib64/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
# Modifca migrazione Nagios ottobre 2015 #   AuthName "Nagios Access"
# Modifca migrazione Nagios ottobre 2015 #   AuthType Basic
# Modifca migrazione Nagios ottobre 2015 #   AuthUserFile /etc/nagios/passwd
# Modifca migrazione Nagios ottobre 2015 #   Require valid-user

   # Configurazione portata dal precedente master Nagios/NagiosQL:
   AuthType Basic
   AuthBasicAuthoritative Off
   AuthUserFile /dev/null
   AuthMYSQLEnable on
   AuthMySQLUser reader
   #AuthMySQLPassword
   AuthMySQLDB db_nagiosql
   AuthMySQLUserTable tbl_user
   AuthMySQLNameField username
   AuthMySQLPasswordField password
   AuthMySQLPwEncryption md5
   AuthName "Tentacles_by_Nagios"
   require valid-user
   # Fine configurazione portata dal precedente master

</Directory>

Alias /nagios "/usr/share/nagios"

<Directory "/usr/share/nagios">
#  SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
#  Order deny,allow
#  Deny from all
#  Allow from 127.0.0.1
# Modifca migrazione Nagios ottobre 2015 #   AuthName "Nagios Access"
# Modifca migrazione Nagios ottobre 2015 #   AuthType Basic
# Modifca migrazione Nagios ottobre 2015 #   AuthUserFile /etc/nagios/passwd
# Modifca migrazione Nagios ottobre 2015 #   Require valid-user

   # Configurazione portata dal precedente master Nagios/NagiosQL:
   AuthType Basic
   AuthBasicAuthoritative Off
   AuthUserFile /dev/null
   AuthMYSQLEnable on
   AuthMySQLUser reader
   #AuthMySQLPassword
   AuthMySQLDB db_nagiosql
   AuthMySQLUserTable tbl_user
   AuthMySQLNameField username
   AuthMySQLPasswordField password
   AuthMySQLPwEncryption md5
   AuthName "Tentacles_by_Nagios"
   require valid-user
   # Fine configurazione portata dal precedente master

</Directory>

