Page 1 of 1

Bad Request

PostPosted: 16. June 2014 00:01
by sdk
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>

Re: Bad Request

PostPosted: 16. June 2014 00:50
by sdk
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.

Re: Bad Request

PostPosted: 16. January 2017 01:14
by earthrat
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.

Re: Bad Request

PostPosted: 16. January 2017 02:11
by Altrea
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.