nagios4/sample-config/httpd.conf.in

69 lines
1.5 KiB
Plaintext
Raw Permalink Normal View History

2017-05-19 22:22:40 +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.
ScriptAlias @cgiurl@ "@sbindir@"
<Directory "@sbindir@">
# SSLRequireSSL
Options ExecCGI
AllowOverride None
2017-05-19 23:37:19 +02:00
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile @sysconfdir@/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile @sysconfdir@/htpasswd.users
Require valid-user
</IfVersion>
2017-05-19 22:22:40 +02:00
</Directory>
Alias @htmurl@ "@datadir@"
<Directory "@datadir@">
# SSLRequireSSL
Options None
AllowOverride None
2017-05-19 23:37:19 +02:00
<IfVersion >= 2.3>
<RequireAll>
Require all granted
# Require host 127.0.0.1
2017-05-19 22:22:40 +02:00
2017-05-19 23:37:19 +02:00
AuthName "Nagios Access"
AuthType Basic
AuthUserFile @sysconfdir@/htpasswd.users
Require valid-user
</RequireAll>
</IfVersion>
<IfVersion < 2.3>
Order allow,deny
Allow from all
# Order deny,allow
# Deny from all
# Allow from 127.0.0.1
AuthName "Nagios Access"
AuthType Basic
AuthUserFile @sysconfdir@/htpasswd.users
Require valid-user
</IfVersion>
</Directory>