LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 08-09-2007, 08:56 PM   #1
c00kie
Member
 
Registered: Mar 2007
Location: CORE
Distribution: FC6, FreeBSD, XP?
Posts: 34

Rep: Reputation: 15
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)

Last edited by c00kie; 08-09-2007 at 08:58 PM.
 
Old 08-10-2007, 12:04 PM   #2
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
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.

Last edited by lord-fu; 08-10-2007 at 12:05 PM.
 
Old 08-10-2007, 01:27 PM   #3
lord-fu
Member
 
Registered: Apr 2005
Location: Ohio
Distribution: Slackware && freeBSD
Posts: 676

Rep: Reputation: 30
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.
 
Old 08-12-2007, 02:51 AM   #4
Matir
Moderator
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

Rep: Reputation: 118Reputation: 118
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.
 
Old 10-15-2012, 10:13 AM   #5
j2mebrew
LQ Newbie
 
Registered: Oct 2012
Posts: 1

Rep: Reputation: Disabled
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

Last edited by j2mebrew; 10-15-2012 at 10:15 AM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
opera: client-error-bad-request landroni Linux - Software 0 11-22-2005 11:22 AM
svc bad request dropping packet naveenrajn Linux - Networking 0 07-04-2005 05:22 AM
client-error-bad-request when trying to print with lp blas Linux - General 4 02-09-2005 11:30 AM
network programming -- bad request mehesque Programming 2 09-21-2004 02:28 PM
Dispatch_input: bad request line Advocate Linux - Security 3 05-04-2001 03:31 AM


All times are GMT -5. The time now is 07:45 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration