ok lets clean this up and just let patrick figure it out

This commit is contained in:
Stephen Smoogen 2017-06-23 17:59:48 +00:00
parent 19e61955b4
commit 9ff288e8dc

View file

@ -4,41 +4,18 @@ ScriptAlias /tac.cgi /usr/lib64/nagios/cgi-bin/tac.cgi
# Set up the authorization # Set up the authorization
{% if vars['nagios_location'] == 'internal' %} <Location /nagios>
<Location />
AuthName "Nagios GSSAPI Login" AuthName "Nagios GSSAPI Login"
{% if vars['nagios_location'] == 'internal' %}
GssapiCredStore keytab:/etc/krb5.HTTP_nagios{{env_suffix}}.fedoraproject.org.keytab GssapiCredStore keytab:/etc/krb5.HTTP_nagios{{env_suffix}}.fedoraproject.org.keytab
AuthType GSSAPI
# This is off because Apache (and thus mod_auth_gssapi) doesn't know this is proxied over TLS # This is off because Apache (and thus mod_auth_gssapi) doesn't know this is proxied over TLS
GssapiSSLonly Off GssapiSSLonly Off
GssapiLocalName on
Require valid-user
</Location>
<Location ~ "/(nagios)/cgi-bin/">
Options ExecCGI
</Location>
RewriteEngine on
RewriteRule ^/$ /nagios/ [R]
Alias /nagios /usr/share/nagios/html/
<Directory "/usr/share/nagios/html">
Options None
</Directory>
{% else %} {% else %}
Alias /nagios "/usr/share/nagios/html"
<Location ~ /nagios/>
AuthName "Nagios GSSAPI Login"
GssapiCredStore keytab:/etc/krb5.HTTP_nagios-external{{env_suffix}}.fedoraproject.org.keytab GssapiCredStore keytab:/etc/krb5.HTTP_nagios-external{{env_suffix}}.fedoraproject.org.keytab
AuthType GSSAPI
GssapiSSLonly On GssapiSSLonly On
{% endif %}
GssapiLocalName on GssapiLocalName on
GssapiPublishErrors On AuthType GSSAPI
Require valid-user Require valid-user
</Location> </Location>
@ -46,12 +23,12 @@ Alias /nagios "/usr/share/nagios/html"
Options ExecCGI Options ExecCGI
</Location> </Location>
{% if vars['nagios_location'] == 'internal' %}
RewriteEngine on
RewriteRule ^/$ /nagios/ [R]
{% endif %}
Alias /nagios /usr/share/nagios/html/
<Directory "/usr/share/nagios/html"> <Directory "/usr/share/nagios/html">
Options None Options None
</Directory> </Directory>
{% endif %}