Re: [client 127.0.0.1] client denied by server configuration: /srv/www/htdocs/

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> First, it has nothing to do with the user under which Apache runs.
> According to the message above, it is the /client/ that is being denied 
> by the server.  It also says that the client is "calling" /from/ the 
> address 127.0.0.1, which is the localhost (the Apache machine itself).
> So you have something running on your Apache machine, which tries to 
> access that website on that same machine.
> Since it appears constantly, my guess is that is some automatic process, 
> probably something running to just check the server. Nagios maybe ?
> 

Yes, that's what it seems like, but I can't see anything it could be. I
do monitor http from another server which checks for index.html
periodically. That is all successful. 

Only thing I see in the access log is a bunch of:
127.0.0.1 - - [18/Feb/2009:15:26:39 -0600] "GET / HTTP/1.1" 403 1039
127.0.0.1 - - [18/Feb/2009:15:28:26 -0600] "GET / HTTP/1.0" 403 1051

> If you have perl installed on that Suse machine, try the following 
> command, from a command-line window on the same machine :
> lwp-request -m GET -Sed http://localhost
> and post here what it answers.

I get:
# lwp-request -m GET -Sed http://localhost
GET http://localhost --> 403 Forbidden
Connection: close
Date: Wed, 18 Feb 2009 21:26:39 GMT
Accept-Ranges: bytes
Server: Apache/2.2.3 (Linux/SUSE)
Vary: accept-language,accept-charset
Content-Language: en
Content-Type: text/html; charset=iso-8859-1
Client-Date: Wed, 18 Feb 2009 21:26:39 GMT
Client-Peer: 127.0.0.1:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Link: <mailto:admin@xxxxxxxxxxxx>; /="/"; rev="made"
Title: Access forbidden!

So that basically confirms that localhost is denied. How do I allow
access and does it seem safe to allow it?

The configuration is:
 <Directory /srv/www/htdocs/>
  AllowOverride None
  Order allow,deny
  Allow from all
 </Directory>

Thanks,
James


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux