8516830 发表于 2019-1-16 08:02:38

You don't have permission to access /nagios/ on this server

  1.nagios 使用Centos 自带的httpd 报错“
  You don't have permission to access /nagios/ on this server
  谷哥搜了一下
  yum install php 就好了,不知所云
  2.马上打开apache的配置文件httpd.conf,逐行检查。在大约快一半的地方有以下这段代码:
  
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     Deny from all
  
  
     发现了吧。由于配置了php后,这里的“Deny from all”已经拒绝了一切连接。把该行改成“allow from all”,修改后的代码如下,问题解决。
  
     Options FollowSymLinks
     AllowOverride None
     Order deny,allow
     allow from all
  
  
     再次在浏览器里打开http://localhost,显示it works!
  3.vim /etc/httpd/conf/httpd.conf
  User apache
  Group apache
  
  改成如下:
  User nagios
  Group nagios
  
  然后service httpd restart
  http://ip/nagios/
  问题解决

页: [1]
查看完整版本: You don't have permission to access /nagios/ on this server