Bad Request

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Bad Request

Postby sdk » 16. June 2014 00:01

Hi there, I keep getting the following error at random times:

Bad Request

Your browser sent a request that this server could not understand.
Size of a request header field exceeds server limit.
Cookie
Apache/2.4.9 (Win32) OpenSSL/1.0.1g PHP/5.5.11 Server at blabla.info Port 80


The strange thing is that I am actually browsing on IP, not at that domain (although the domain is a virtual host on the same ip).

Any suggestions how I can find the issue?

edit: I think I may have made an error in my virtual host configuration. Since none of the URLS are working :(. I am getting the XAMPP securities warning on all except for the direct ip.

Code: Select all
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/one"
ServerName dekooter.info
ServerAlias www.one.info
<Directory "c:/xampp/htdocs/one">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/two"
ServerName two.nl
ServerAlias www.two.nl
<Directory "c:/xampp/htdocs/two">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs/three"
ServerName three.nl
ServerAlias www.three.nl
<Directory "c:/xampp/htdocs/three">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName 83.82.xxx.xxx
<Directory "c:/xampp/htdocs">
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot "C:/xampp/htdocs"
ServerName localhost
</VirtualHost>
sdk
 
Posts: 7
Joined: 04. September 2006 12:20

Re: Bad Request

Postby sdk » 16. June 2014 00:50

Ugh this is driving me crazy. I keep getting the annoying Security Concept error when I visit from a domain. Only direct IP is working.
sdk
 
Posts: 7
Joined: 04. September 2006 12:20

Re: Bad Request

Postby earthrat » 16. January 2017 01:14

For anyone else looking for an answer to this I found by opening httpd.conf and adding the following I was able to get past this. Sad that no one was able to answer this guys simple question!

LimitRequestFieldSize 500000

Of course save and restart Apache to complete the process.
earthrat
 
Posts: 6
Joined: 29. May 2011 21:18

Re: Bad Request

Postby Altrea » 16. January 2017 02:11

earthrat wrote:LimitRequestFieldSize 500000

Show me only one Client Requests Header of 500000 Bytes. This value is absolutely crazy and is far away from being a recommend value.
The default value is 8190. If you think this value is too low, i would first try to double it. But using 60 times of the default value is insane.

Apart from this, thank you for providing a solution.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 148 guests