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

Marc Powell marc at ena.com
Fri Oct 30 21:53:31 CET 2009


On Oct 30, 2009, at 2:34 PM, jonas kellens wrote:

> [root at nagios ~]# htpasswd -c /usr/local/nagios/etc/htpasswd.users  
> nagiosadmin

You created it as root here...

> -rw-r--r-- 1 root   root      26 Oct 30 19:44 htpasswd.users
>
>
> Is it normal that htpasswd.users has root.root ??

... so yes, it would be normal that it would be root:root. Whether you  
want to keep it that way is your choice. As long as your web server  
can read the file, it's not that significant (it can with these  
permissions). I personally chown it to nagios to be consistent but  
anyone that can log in as the nagios user could edit it.

> In my /etc/httpd/conf.d/ I have :
>
> [root at nagios ~]# ls -l /etc/httpd/conf.d/
> total 32
> -rw-r--r-- 1 root root 1010 Oct 30 19:42 nagios.conf

> Is it normal that nagios.conf has root.root ??

Yes.

> "Allow from all" should let me consult the Nagios web-interface from  
> whichever host I want to, no ?!

Yes.

> All directories in /usr/local/nagios is nagios.nagios. That's OK,  
> right ?!

Yes.

> When I want to consult the webGUI from my portable, I get the  
> message "You don't have permission to access /nagios/ on this server"
>
> The /var/log/httpd/error/log says :
>
> [Fri Oct 30 21:38:19 2009] [error] [client 192.168.1.250] Directory  
> index forbidden by Options directive: /usr/local/nagios/share/

Verify you have PHP installed and enabled. Verify index.php is listed  
as a DirectoryIndex within httpd.conf or conf.d/php.conf (depending on  
your OS/distribution)?

--
Marc


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list