简体   繁体   English

Linux-已安装Nagios,但出现禁止403错误

[英]Linux - Installed Nagios but getting Forbidden 403 error

I have installed nagios successfully on fedora 17. but when I am trying to connect to nagios like http://mylocalhost.com/nagios . 我已经在fedora 17上成功安装了nagios,但是当我尝试连接到http://mylocalhost.com/nagios之类的 nagios时。 It asks for username and password. 它要求输入用户名和密码。 After putting these information I am found out forbidden 403 error with message , You dont have permission to access /nagios/ on this server. 输入完这些信息后,我发现消息禁止403错误 ,您无权访问此服务器上的/ nagios /。

I am bit confused how to resolve this issue. 我有点困惑如何解决此问题。 I read some post. 我读了一些帖子。 they were saying to create empty index.html inside http root directory. 他们说要在http根目录中创建空的index.html。 i tried but same error is there. 我试过,但同样的错误在那里。

http://www.unixmen.com/nagios-http-warning-http11-403-forbidden-solved/ http://www.unixmen.com/nagios-http-warning-http11-403-forbidden-solved/

If I am not wrong http root directory is /var/www/html? 如果我没看错,http根目录是/ var / www / html?

oops ... sorry it was problem with my httpd service which was running actually but not accessible for publicly. 糟糕...抱歉,我的httpd服务存在问题,该服务实际上正在运行,但无法公开访问。

simply I flushed out iptables. 只是我冲出了iptables。 then Checked out httpd service whether it is running properly or not. 然后检查httpd服务是否运行正常。

Now its working great. 现在,它的工作很棒。

I think you create file index.html in /var/www/html. 我认为您在/ var / www / html中创建文件index.html。 After you can restart service nagios and httpd 您可以重新启动服务nagios和httpd之后

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM