2013-10-10 13:22:09 +02:00
|
|
|
# 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.
|
|
|
|
|
2013-11-12 08:49:19 +01:00
|
|
|
ScriptAlias /icinga/cgi-bin "@CMAKE_INSTALL_FULL_LIBDIR@/icinga/cgi"
|
2013-10-10 13:22:09 +02:00
|
|
|
|
2013-11-12 08:49:19 +01:00
|
|
|
<Directory "@CMAKE_INSTALL_FULL_LIBDIR@/icinga/cgi">
|
2013-10-10 13:22:09 +02:00
|
|
|
# SSLRequireSSL
|
|
|
|
Options ExecCGI
|
|
|
|
AllowOverride None
|
2014-12-02 18:26:29 +01:00
|
|
|
|
2013-10-10 13:22:09 +02:00
|
|
|
AuthName "Icinga Access"
|
|
|
|
AuthType Basic
|
2013-11-12 08:49:19 +01:00
|
|
|
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd
|
2014-12-02 18:26:29 +01:00
|
|
|
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
<RequireAll>
|
|
|
|
Require all granted
|
|
|
|
# Require local
|
|
|
|
Require valid-user
|
|
|
|
</RequireAll>
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
# Order deny,allow
|
|
|
|
# Deny from all
|
|
|
|
# Allow from 127.0.0.1
|
|
|
|
Require valid-user
|
|
|
|
</IfModule>
|
2013-10-10 13:22:09 +02:00
|
|
|
</Directory>
|
|
|
|
|
2013-11-12 08:49:19 +01:00
|
|
|
Alias /icinga "@CMAKE_INSTALL_FULL_DATADIR@/icinga/"
|
2013-10-10 13:22:09 +02:00
|
|
|
|
2013-11-12 08:49:19 +01:00
|
|
|
<Directory "@CMAKE_INSTALL_FULL_DATADIR@/icinga/">
|
2013-10-10 13:22:09 +02:00
|
|
|
# SSLRequireSSL
|
|
|
|
Options None
|
|
|
|
AllowOverride All
|
2014-12-02 18:26:29 +01:00
|
|
|
|
2013-10-10 13:22:09 +02:00
|
|
|
AuthName "Icinga Access"
|
|
|
|
AuthType Basic
|
2013-11-12 08:49:19 +01:00
|
|
|
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd
|
2014-12-02 18:26:29 +01:00
|
|
|
|
|
|
|
<IfModule mod_authz_core.c>
|
|
|
|
# Apache 2.4
|
|
|
|
<RequireAll>
|
|
|
|
Require all granted
|
|
|
|
# Require local
|
|
|
|
Require valid-user
|
|
|
|
</RequireAll>
|
|
|
|
</IfModule>
|
|
|
|
<IfModule !mod_authz_core.c>
|
|
|
|
# Apache 2.2
|
|
|
|
Order allow,deny
|
|
|
|
Allow from all
|
|
|
|
# Order deny,allow
|
|
|
|
# Deny from all
|
|
|
|
# Allow from 127.0.0.1
|
|
|
|
Require valid-user
|
|
|
|
</IfModule>
|
2013-10-10 13:22:09 +02:00
|
|
|
</Directory>
|
|
|
|
|