Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default Looking for a 'fix' for my apache / php error_log

    Hi,

    Every two minutes some 3rd party monitoring software pings my server, and this happens:

    usr/local/apache/logs/access_log
    66.225.240.194 - - [13/Apr/2006:15:35:27 +0800] "GET . HTTP/1.0" 400 2

    /usr/local/apache/logs/error_log
    [Thu Apr 13 15:35:27 2006] [error] [client 66.225.240.194] Invalid URI in request GET . HTTP/1.0

    Is there anything (simple, hopefully) I can do/tweak on my server such that this request does not generate an 'invalid uri' entry in the (php) error_log?

    This is obviously not a show-stopper problem for us. I just like to keep my logs tidy if I can so that I can see the wood for the trees.

    P.S. Assume I'm not able adjust the 3rd party monitoring software, so my only opportunity is to tweak my server.

    Thanks for any help.

    P.S. Happy Easter.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  2. #2
    Member
    Join Date
    Jan 2005
    Location
    /dev/null
    Posts
    770

    Default

    block the IP address from accessing your server, other than that I dont see any way you can format its requests

  3. #3
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Indeed. The problem is it's using conflicting protocols, i.e. PING -> HTTP which won't work and is why you get the error in the logs.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  4. #4
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default

    Thanks guys.

    The 3rd party monitoring is by a company who we actually *want* to be monitoring our servers for uptime - we're paying them to do this :-)

    When I've showed them this issue they've very politely suggested that it's not a big deal, just ignore it, and just because it shows as an 'error' that isn't necessarily a 'bad' thing. I don't have a problem with their position - so I'm probably being a bit overly 'anal' :-) in trying to insert a workaround that doesn't fill my error logs.

    So if anyone thinks that I'm not being anal (other than myself) and can suggest a comment I can go back with to our 3rd party support/monitoring company that might help them to fix this anomaly - I'm all ears :-)
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  5. #5
    Member brianoz's Avatar
    Join Date
    Mar 2004
    Location
    Melbourne, Australia
    Posts
    1,117
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    You're only being a little bit anal, after all, if they're monitoring your website they could at least send a properly constructed HTTP query. It should just be a matter of changing the "." in "GET ." to a slash, as in"GET /". I would have thought that should be trivially easy to get right.

    If they haven't fixed it already after your first query perhaps you want to look for another monitoring company who can actually get it right! The problem with what they're doing now is that over time it floods your error logs and makes it harder to see the real errors.

Similar Threads & Tags
Similar threads

  1. Strange output in Apache error_log
    By tomp_gl in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-21-2009, 09:05 PM
  2. How to prevent /usr/locap/apache/logs/error_log flooding from PHP errors ?
    By WebHostDog in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-18-2007, 10:33 AM
  3. Problem with repeated PHP errors in Apache error_log
    By WebHostDog in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 03-21-2007, 10:25 AM
  4. Apache error_log
    By minasonline in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-09-2003, 06:48 AM
  5. Apache (error_log)
    By minasonline in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-05-2003, 11:00 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube