Hi Nadia,<br><br>It's good to make sure you send a copy of all replies to the list -- that way, people with the same problem later on get to see the whole conversation :-)<br><br>Anyway...<br><br>Is there an 'index.html' file in /usr/local/nagios/share ? If a file called 'index.html' does exist there, is there a line like this in your apache configuration file:<br>
<br>DirectoryIndex index.html<br><br>Regards,<br>Guy.<br><br><div class="gmail_quote">On Wed, Jul 15, 2009 at 9:03 AM, nadia kheffache <span dir="ltr"><<a href="mailto:nadiakheffache@yahoo.fr">nadiakheffache@yahoo.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br>
Hi Guy,<br>
<br>
i have these error in my log file:<br>
<br>
[root@serveur nagios-plugins-1.4.11]# tail -f /etc/httpd/logs/error_log<br>
[Wed Jul 15 10:09:50 2009] [error] [client 192.168.3.25] Directory index forbidden by rule: /usr/local/nagios                                /share/<br>
[Wed Jul 15 10:09:51 2009] [error] [client 192.168.3.25] Directory index forbidden by rule: /usr/local/nagios                                /share/<br>
[Wed Jul 15 10:09:52 2009] [error] [client 192.168.3.25] Directory index forbidden by rule: /usr/local/nagios                                /share/<br>
[Wed Jul 15 10:10:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:15:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:20:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:25:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:30:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:35:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
[Wed Jul 15 10:40:15 2009] [error] [client 127.0.0.1] Directory index forbidden by rule: /var/www/html/<br>
<br>
<br>
<br>
--- En date de : Mer 15.7.09, Guy Waugh <<a href="mailto:guidosh@gmail.com">guidosh@gmail.com</a>> a écrit :<br>
<br>
> De: Guy Waugh <<a href="mailto:guidosh@gmail.com">guidosh@gmail.com</a>><br>
> Objet: Re: [Nagios-users] error to access on nagios web<br>
> À: "nadia kheffache" <<a href="mailto:nadiakheffache@yahoo.fr">nadiakheffache@yahoo.fr</a>><br>
> Cc: <a href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</a><br>
> Date: Mercredi 15 Juillet 2009, 9h52<br>
<div><div></div><div class="h5">> Hi Nadia,<br>
>  <br>
> What does the apache error log say?<br>
>  <br>
> Regards,<br>
> Guy.<br>
><br>
><br>
> On Wed, Jul 15, 2009 at 8:29 AM,<br>
> nadia kheffache <<a href="mailto:nadiakheffache@yahoo.fr">nadiakheffache@yahoo.fr</a>><br>
> wrote:<br>
><br>
><br>
> I'm having some issues setting up the web interface for<br>
> Nagios. I have follow <a href="http://nagios.sourceforge.net/docs/2_0/cgiauth.html" target="_blank">http://nagios.sourceforge.net/docs/2_0/cgiauth.html</a><br>
> instructions to the letter and I'm getting<br>
><br>
><br>
> Forbidden<br>
><br>
> You don't have permission to access /nagios on this<br>
> server.<br>
> __________________________________________________________________<br>
><br>
> Apache/2.0.52 (Red Hat) Server at vm-redhat Port 80<br>
><br>
><br>
> i have a right permission on these file:<br>
><br>
> [root@spvcol ~]# ll /usr/local/nagios/etc/htpasswd.users<br>
> -rwxrwxr-x 1 apache apache 26 sep 16  2008<br>
> /usr/local/nagios/etc/htpasswd.users<br>
><br>
> ------------------------------------------------------------<br>
><br>
><br>
> nagios.conf: "/etc/httpd/conf.d/nagios.conf"<br>
><br>
> # SAMPLE CONFIG SNIPPETS FOR APACHE WEB SERVER<br>
> # Last Modified: 11-26-2005<br>
> #<br>
> # This file contains examples of entries that need<br>
> # to be incorporated into your Apache web server<br>
><br>
> # configuration file.  Customize the paths, etc. as<br>
> # needed to fit your system.<br>
><br>
> ScriptAlias /nagios/cgi-bin<br>
> "/usr/local/nagios/sbin"<br>
><br>
> <Directory "/usr/local/nagios/sbin"><br>
> #  SSLRequireSSL<br>
><br>
>   Options ExecCGI<br>
>   AllowOverride None<br>
>   Order allow,deny<br>
>   Allow from all<br>
> #  Order deny,allow<br>
> #  Deny from all<br>
> #  Allow from 127.0.0.1<br>
>   AuthName "Nagios Access"<br>
>   AuthType Basic<br>
>   AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
><br>
>   Require valid-user<br>
> </Directory><br>
><br>
> Alias /nagios "/usr/local/nagios/share"<br>
><br>
> <Directory "/usr/local/nagios/share"><br>
> #  SSLRequireSSL<br>
>   Options None<br>
>   AllowOverride None<br>
><br>
>   Order allow,deny<br>
>   Allow from all<br>
> #  Order deny,allow<br>
> #  Deny from all<br>
> #  Allow from 127.0.0.1<br>
>   AuthName "Nagios Access"<br>
>   AuthType Basic<br>
>   AuthUserFile /usr/local/nagios/etc/htpasswd.users<br>
><br>
>   Require valid-user<br>
> </Directory><br>
><br>
> ________________________________________________________________<br>
><br>
> Thank for your help<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
> ------------------------------------------------------------------------------<br>
><br>
> Enter the BlackBerry Developer Challenge<br>
> This is your chance to win up to $100,000 in prizes! For a<br>
> limited time,<br>
> vendors submitting new applications to BlackBerry App<br>
> World(TM) will have<br>
> the opportunity to enter the BlackBerry Developer<br>
> Challenge. See full prize<br>
><br>
> details at: <a href="http://p.sf.net/sfu/Challenge" target="_blank">http://p.sf.net/sfu/Challenge</a><br>
> _______________________________________________<br>
> Nagios-users mailing list<br>
> <a href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a><br>
><br>
> <a href="https://lists.sourceforge.net/lists/listinfo/nagios-users" target="_blank">https://lists.sourceforge.net/lists/listinfo/nagios-users</a><br>
> ::: Please include Nagios version, plugin version (-v) and<br>
> OS when reporting any issue.<br>
><br>
> ::: Messages without supporting info will risk being sent<br>
> to /dev/null<br>
><br>
><br>
><br>
<br>
<br>
<br>
<br>
</div></div></blockquote></div><br>