mirror of https://github.com/Icinga/icinga2.git
71 lines
1.7 KiB
CMake
71 lines
1.7 KiB
CMake
# 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.
|
|
#
|
|
# This has been DEPRECATED and will be removed in future releases.
|
|
# You can manually configure the Classic UI by keeping a backup of this file.
|
|
|
|
ScriptAlias /icinga/cgi-bin "@CMAKE_INSTALL_FULL_LIBDIR@/icinga/cgi"
|
|
|
|
<Directory "@CMAKE_INSTALL_FULL_LIBDIR@/icinga/cgi">
|
|
# SSLRequireSSL
|
|
Options ExecCGI
|
|
AllowOverride None
|
|
|
|
AuthName "Icinga Access"
|
|
AuthType Basic
|
|
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd
|
|
|
|
<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>
|
|
</Directory>
|
|
|
|
Alias /icinga "@CMAKE_INSTALL_FULL_DATADIR@/icinga/"
|
|
|
|
<Directory "@CMAKE_INSTALL_FULL_DATADIR@/icinga/">
|
|
# SSLRequireSSL
|
|
Options None
|
|
AllowOverride All
|
|
|
|
AuthName "Icinga Access"
|
|
AuthType Basic
|
|
AuthUserFile @CMAKE_INSTALL_FULL_SYSCONFDIR@/icinga/passwd
|
|
|
|
<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>
|
|
</Directory>
|
|
|