小编Sai*_*fis的帖子

从为根目录设置的基本身份验证中排除 nagios 目录

我从 Apache 的根目录获得了基本身份验证。我是这样设置的。

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

 <Location />
    AuthType Basic
    AuthUserFile xxxxxxxx
    AuthName "Restricted Area"
    Require valid-user
  </Location>
Run Code Online (Sandbox Code Playgroud)

由于此设置是在 root 中设置的,因此它会覆盖 Nagios 的基本身份验证,从而使 Nagios 无法运行。我试图通过执行排除 Nagios 目录

  <Location /nagios>
    Allow from all
    Satisfy any
  </Location>
Run Code Online (Sandbox Code Playgroud)

但是由于它主导了 Nagios 设置,因此禁用了身份验证。

仅排除 Nagios 子目录的正确方法是什么?

centos nagios exclude http-basic-authentication apache-2.2

4
推荐指数
1
解决办法
1189
查看次数