finished nagios.conf
This commit is contained in:
@@ -33,11 +33,12 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
||||
</IfVersion>
|
||||
<IfVersion < 2.3>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
# Order deny,allow
|
||||
# Deny from all
|
||||
# Allow from 127.0.0.1
|
||||
|
||||
<% unless @ng_required_hosts.empty? -%>
|
||||
Allow from <%= @ng_required_hosts %>
|
||||
<% end -%>
|
||||
<% unless @ng_required_ips.empty? -%>
|
||||
Alloow from <%= @ng_required_ips %>
|
||||
<% end -%>
|
||||
AuthName "Nagios Access"
|
||||
AuthType Basic
|
||||
AuthUserFile /etc/nagios/passwd
|
||||
@@ -48,7 +49,11 @@ ScriptAlias /nagios/cgi-bin/ "/usr/lib64/nagios/cgi-bin/"
|
||||
Alias /nagios "/usr/share/nagios/html"
|
||||
|
||||
<Directory "/usr/share/nagios/html">
|
||||
<% if @ng_use_https == true -%>
|
||||
SSLRequireSSL
|
||||
<% else -%>
|
||||
# SSLRequireSSL
|
||||
<% end -%>
|
||||
Options None
|
||||
AllowOverride None
|
||||
<IfVersion >= 2.3>
|
||||
@@ -68,11 +73,12 @@ Alias /nagios "/usr/share/nagios/html"
|
||||
</IfVersion>
|
||||
<IfVersion < 2.3>
|
||||
Order allow,deny
|
||||
Allow from all
|
||||
# Order deny,allow
|
||||
# Deny from all
|
||||
# Allow from 127.0.0.1
|
||||
|
||||
<% unless @ng_required_hosts.empty? -%>
|
||||
Allow from <%= @ng_required_hosts %>
|
||||
<% end -%>
|
||||
<% unless @ng_required_ips.empty? -%>
|
||||
Alloow from <%= @ng_required_ips %>
|
||||
<% end -%>
|
||||
AuthName "Nagios Access"
|
||||
AuthType Basic
|
||||
AuthUserFile /etc/nagios/passwd
|
||||
|
||||
Reference in New Issue
Block a user