【问题标题】:Nagios webinterface error..You don't have permission to access /nagios/ on this serverNagios 网络界面错误..您无权访问此服务器上的 /nagios/
【发布时间】:2017-10-25 14:36:38
【问题描述】:

我在访问 nagios 的 Web 界面时遇到以下错误。

禁止

您无权访问此服务器上的 /nagios/。 Apache/2.2.15 (Red Hat) 服务器在 localhost 端口 80

请帮帮我..我工作了一个星期仍未解决。

【问题讨论】:

  • 你检查/nagios/文件夹权限了吗?
  • 感谢您的回复...我为 nagios 文件夹提供了 777,您可以在 drwxrwxrwx 下方找到。 9 nagios nagios 4096 Oct 11 23:02 nagios nagios 安装在 /usr/local/nagios

标签: nagios


【解决方案1】:

配置文件中要访问的几个地方。

检查您的 /etc/httpd/conf.d/nagios.conf 文件,如果 SSL 选项已打开,请尝试禁用它 然后 重启httpd服务。

以下是文件 /etc/httpd/conf.d/nagios.conf 中的示例条目

   ScriptAlias /nagios/cgi-bin "/usr/lib64/nagios/cgi"

<Directory "/usr/lib64/nagios/cgi">
#SSLRequireSSL
Options ExecCGI
AllowOverride None
Order allow,deny
Allow from all
AuthName "Nagios Access"
AuthType Basic
AuthUserFile /etc/nagios/htpasswd.users
Require valid-user
</Directory>

Alias /nagios "/usr/share/nagios"

  <Directory "/usr/share/nagios">
   #SSLRequireSSL
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /etc/nagios/htpasswd.users
   Require valid-user
</Directory>

【讨论】:

    猜你喜欢
    • 2012-10-09
    • 1970-01-01
    • 2018-02-09
    • 1970-01-01
    • 1970-01-01
    • 2017-02-26
    • 1970-01-01
    • 2013-06-30
    • 2019-02-22
    相关资源
    最近更新 更多