LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (http://www.linuxquestions.org/questions/linux-server-73/)
-   -   Apache - Bad Request - IMPORTANT PLEASE (http://www.linuxquestions.org/questions/linux-server-73/apache-bad-request-important-please-576028/)

c00kie 08-09-2007 07:56 PM

Apache - Bad Request - IMPORTANT PLEASE
 
Hi there,

Lots of people are complaining about "400 errors, Bad Request" and such.. (try searching google for "apache bad request" and you'll see for yourself). I taught.. why not look into the error_log, maybe I'll find some info.. so here's the big info I found:

Code:

[Fri Aug 10 03:43:40 2007] [error] [client 85.186.140.71] request failed: error reading the headers
[Fri Aug 10 03:43:40 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:43:40 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:47:30 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:48:01 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:50:10 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:51:12 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers
[Fri Aug 10 03:51:54 2007] [error] [client XXX.YYY.ZZZ.SSS] request failed: error reading the headers

I was shocked.. what's up with this s**t?! This is just a little part of this.. the error_log is full of stuff like this.

Thank in advance and please.. help! I'm gettin' crazy here, save a life -_-

PS: look @ this one
Code:

[Fri Aug 10 03:56:17 2007] [error] [client FFF.UUU.CCC.KKK] request failed: URI too long (longer than 8190)

lord-fu 08-10-2007 11:04 AM

I don't understand? Are people requesting pages from your site that should be there, and they are getting 404's? I get plenty of errors because of crackers, internet junk etc that end up at my server and I can usually ignore the larger majority of them. Although I have never seen that particular client address formatted like so.

lord-fu 08-10-2007 12:27 PM

This is interesting also.

http://www.linuxquestions.org/questi...d.php?t=574826

Seems like your syptoms, again sorry I can't be of more help.

Matir 08-12-2007 01:51 AM

These messages are generally caused by a client sending (guess what) bad headers. To see what kind of requests you're receiving, I'd look at the access_log for the matching entries as the error logs.

j2mebrew 10-15-2012 09:13 AM

request failed - error reading headers
 
So far, I used to access this site at guest as I have got good help on this site... and found solution specific to this problem and thought to offer little help here with my learning.

I had similar issue where I am running apache with ssl configuration.
To resolve the problem, please check potential size of header sent to server. Apache needs to be configure accordingly.

Directives to be set/modified are as follows:
Below values worked for me, you may like to set it correctly for your needs.

LimitRequestLine 512
LimitRequestFields 100
LimitRequestFieldSize 1024
LimitRequestBody 102400



brew


All times are GMT -5. The time now is 06:14 PM.