FW: Apache access error

Marc Powell mpowell at ena.com
Tue Oct 21 16:40:34 CEST 2003


Negendra,

I think I see the problem:

[Tue Oct 21 03:24:41 2003] [error] [client 152.69.167.26] client denied by server configuration: /usr/share/nagios/

Shouldn't that be /usr/local/nagios/share? Your httpd.conf looks correct at first glance and according to the error_log below it was restarted but for some reason it's still thinking that the /nagios alias points to /usr/share/nagios. Did you have it set that way at one point? I noticed this at the bottom of your httpd.conf --

# Include /etc/httpd/conf.d/nagios.conf

I know it's commented out now, but was it at the time you restarted apache and grabbed the log information? What are the contents of that file?

Hopefully that rings a bell.

--
Marc

________________________________________
From: Nagendra A [mailto:nagendra.rao at oracle.com] 
Sent: Tuesday, October 21, 2003 2:33 AM
To: Marc Powell

Hi Mark,
 
Thanks for the detailed mail.
Here is the details that your require.
 
Nagios version : nagios-1.1.tar.gz 
Os Version : PCQLinux release 8.0 (Aquamarine)
                    Kernel 2.4.18-24.8.0 on an i686
 
I have followed the the instruction as per the documentation.
Also atttaching httpd.conf.
 
http error_log
[root at itoppsmon logs]# tail -f error_log
[Tue Oct 21 03:23:04 2003] [warn] child process 4207 still did not exit, sending a SIGTERM
[Tue Oct 21 03:23:04 2003] [warn] child process 4208 still did not exit, sending a SIGTERM
[Tue Oct 21 03:23:04 2003] [warn] child process 4209 still did not exit, sending a SIGTERM
[Tue Oct 21 03:23:04 2003] [warn] child process 4217 still did not exit, sending a SIGTERM
[Tue Oct 21 03:23:06 2003] [notice] caught SIGTERM, shutting down
[Tue Oct 21 03:23:13 2003] [notice] Digest: generating secret for digest authentication ...
[Tue Oct 21 03:23:13 2003] [notice] Digest: done
[Tue Oct 21 03:23:14 2003] [notice] Apache/2.0.40 (Red Hat Linux) configured -- resuming normal operations
[Tue Oct 21 03:24:34 2003] [error] [client 152.69.167.26] Directory index forbidden by rule: /var/www/html/
[Tue Oct 21 03:24:41 2003] [error] [client 152.69.167.26] client denied by server configuration: /usr/share/nagios/
http access_log
[root at itoppsmon logs]# tail -f access_log
152.69.167.26 - - [21/Oct/2003:01:49:25 +051800] "GET /icons/apache_pb.gif HTTP/1.1" 200 2326 "http://itoppsmon.idc.oracle.com" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:49:25 +051800] "GET /icons/powered_by.gif HTTP/1.1" 200 581 "http://itoppsmon.idc.oracle.com" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:49:43 +051800] "GET / HTTP/1.1" 403 2898 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:50:16 +051800] "GET /manul HTTP/1.1" 404 1062 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:50:22 +051800] "GET /manul/ HTTP/1.1" 404 1062 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:50:25 +051800] "GET /manul HTTP/1.1" 404 1062 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:50:27 +051800] "GET / HTTP/1.1" 403 2898 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:01:50:37 +051800] "GET /nagios/ HTTP/1.1" 403 1066 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:03:24:34 +051800] "GET / HTTP/1.1" 403 2898 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
152.69.167.26 - - [21/Oct/2003:03:24:41 +051800] "GET /nagios/ HTTP/1.1" 403 1066 "-" "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0)"
nagios installation directory -  /usr/local/nagios
 
Directory perimission :
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 bin
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 sbin
drwxrwxrwx    8 nagios   nagios       4096 Oct  1 11:12 share
drwxrwxrwx    3 nagios   nagios       4096 Oct  1 11:12 var
 
/share 
 
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 contexthelp
drwxrwxrwx    3 nagios   nagios       4096 Oct  1 11:12 docs
drwxrwxrwx    3 nagios   nagios       4096 Oct  1 11:12 images
-rwxrwxrwx    1 nagios   nagios        658 Oct 21 03:21 index.html
-rwxrwxrwx    1 nagios   nagios       2340 Oct  1 11:12 main.html
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 media
-rwxrwxrwx    1 nagios   nagios         26 Oct  1 11:12 robots.txt
-rwxrwxrwx    1 nagios   nagios      10752 Oct  1 11:12 side.html
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 ssi
drwxrwxrwx    2 nagios   nagios       4096 Oct  1 11:12 stylesheets
used touch command to chage the timestamp of index.html.
 
Thanks
Nagendra A
-----Original Message-----
From: Marc Powell [mailto:mpowell at ena.com]
Sent: Tuesday, October 21, 2003 10:33 AM
To: nagendra.rao at oracle.com
Subject: Re: [Nagios-users] FW: Apache access error
That's really not a whole lot to go on. The relevant sections of your httpd config, the installation steps you've taken so far and any troubleshooting you've done to this point will all help to resolve this quickly with minimal repetition of work already done. Nagios version, OS version, httpd version and nagios nstallation method are all particularly relevant as well. More information is always better.

That being said, have you checked your http error logs for more information? What do they indicate exactly? Did you follow the web server configuration directions and restart your web server? Did you do a make all and make install in the nagios source directory? Were there any special configure options you used (to change the prefix directory perhaps)? Finally, is there an index document in the nagios share directory and is it readable by your web server (and any directories above it readable and acessible by your web server?


--
Marc

-----Original Message-----
From: Nagendra A <nagendra.rao at oracle.com>
To: nagios-users at lists.sourceforge.net <nagios-users at lists.sourceforge.net>
Sent: Mon Oct 20 21:16:19 2003
Subject: [Nagios-users] FW: Apache access error

Hi,

Can you please help me to resolve this issue.

When i access nagios default web page i get error.

http://itoppsmon/nagios/

Access forbidden!
You do not have permission to access the requesteddirectory.There is either no index document or the directory is read protected.

let me know if u require more details.

Thanks
Nagendra A




-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
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


-------------------------------------------------------
This SF.net email is sponsored by OSDN developer relations
Here's your chance to show off your extensive product knowledge
We want to know what you know. Tell us and you have a chance to win $100
http://www.zoomerang.com/survey.zgi?HRPT1X3RYQNC5V4MLNSV3E54
_______________________________________________
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