Move the nagios Apache authentication directives to a <Location> block

Following the trac Apache config.

(imported from commit 01e773f2361d85f45f190f6ade2510b84a2f88ee)
This commit is contained in:
Keegan McAllister 2012-11-30 21:07:08 -05:00
parent 41319fe820
commit 7c495d7232
1 changed files with 8 additions and 6 deletions

View File

@ -23,6 +23,14 @@
RedirectMatch ^/?$ https://nagios.humbughq.com/nagios3/
<Location "/">
AuthType Digest
AuthName "wiki"
AuthDigestProvider file
AuthUserFile /etc/apache2/users/wiki
Require valid-user
</Location>
<DirectoryMatch (/usr/share/nagios3/htdocs|/usr/lib/cgi-bin/nagios3|/etc/nagios3/stylesheets)>
Options FollowSymLinks
@ -31,12 +39,6 @@
AllowOverride AuthConfig
Order Allow,Deny
Allow From All
AuthType Digest
AuthName "wiki"
AuthDigestProvider file
AuthUserFile /etc/apache2/users/wiki
Require valid-user
</DirectoryMatch>
<Directory /usr/share/nagios3/htdocs>