4

I have basic auth from the root directory for Apache. I am setting it like so.

/etc/httpd/conf.d/xxxx.conf

 <Location />
    AuthType Basic
    AuthUserFile xxxxxxxx
    AuthName "Restricted Area"
    Require valid-user
  </Location>

Since this setting is set at root, it overrides the Basic Auth for Nagios rendering Nagios inoperable. I tried to exclude the Nagios directory by doing

  <Location /nagios>
    Allow from all
    Satisfy any
  </Location>

But that disabled authentication all together since it takes presidence against the Nagios settings.

What is the correct way of excluding just the Nagios sub-directory?

Saifis
  • 199
  • 2
  • 13

1 Answers1

5

Try using the "Directory" directive instead of the "Location" directive. Locations tend to have a wider scope which makes fine-grained control more difficult.

Shaun Dewberry
  • 467
  • 2
  • 9