Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit / ~#root -i
  • RU
  • UA
  • EN
  • Create an online store
  • Documentation
  • Blog
    • Unix ОS
    • Php
    • MySQL
    • JavaScript
    • Package Managers
    • Docker
    • Seo
  • Auxiliary services
    • Short Links
    • Exchange views YouTube
  • Sign in
  • Create Account
  • Home
  • Unix OS
  • Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit

Ubuntu Apache 2.4 Bad Request Size of a request header field exceeds server limit

Using 3rd party JS plugins, chats and analytics or misusing cookie storage may result in site failure due to large request.

Bad Request

There may be 2 reasons:

1. Total cookie size overflow (default can be 4kb or 8kb)

2. Cookie overflow (default 100)

In order to edit these parameters, we need in the .conf (/etc/apache2/site_avaliable/YourSite.conf) virtual host file or in the global apache2.conf (/apache2/apache2.conf) or depending on the version of OS - httpd.conf (/etc/httpd/conf/httpd.conf). Add the necessary parameters.

There are 3 of these parameters:

LimitRequestFieldSize size in bytes

LimitRequestLine size in bytes

LimitRequestFields maximum number of cookies

LimitRequestFieldSize - allows you to set the size limit for the HTTP request header field.

LimitRequestLine - limit on the length of the request URL allowed for a request on the server.

LimitRequestFields - Allows you to change the limit on the number of request header fields allowed in an HTTP request.

Add to VirtualHost (/etc/apache2/site_avaliable/YourSite.conf)

VirtualHost

Or adding to apache2.conf (/etc/apache2/apache2.conf)

apache2

remember that the values ​​of these parameters are taken from the first declaration. That is, if they are already registered in the global settings apache2.conf, then the settings in VirtualHost will not work.

Don't forget to do apache2 restart.

Source: site

12 August 22
67
0

Comments

Name
E-mail
Rating
Review

Other articles from the category

28 September 2022

Configuration file (php.ini) when running Cron (cli) changing parameters (memory_limit) on hosting

Let's consider the possibility of changing the parameters of the configuration file (php.ini) on a hosting that does not have the ability to configure the Cron scheduler (cli) from the panel.

26 May 2022

Ubuntu black screen after driver installation on Nvidia 630M

Let's try to cure the black screen when booting Ubuntu after installing proprietary nvidia-340 driver on Nvidia 630M laptop.

06 January 2022

USB not working after Ubuntu 18.04 update on laptop

When USB 2.0-3.0 stopped working after updating Ubuntu on a laptop.

18 December 2021

Running Skype (skypeforlinux) in multiple Ubuntu windows

Ability to run Skype in multiple windows. Installed on Ubuntu skypeforlinux run in 2 windows.

23 March 2020

Disabling bluetooth speakers, dos attack on bluetooth in Linux

Let's consider one of the ways to dos-attack on bluetooth through the basic l2ping tools in linux. Let's analyze a simple python script.

30 December 2019

Store e-mail locally, Ubuntu sendmail stub for Php

Consider a script that saves e-mail to a file. Sendmail stub, setup in Ubuntu.

26 June 2019

Ubuntu 18.04 initramfs error

Let's analyze one of the reasons for the initramfs error when starting Linux Ubuntu 18.04. Let's try a system restore. fsck exited with status code 4.

31 March 2019

Npm : Depends node-gyp but won`t install Ubuntu 18.04

Unsatisfied links when installing npm, after installing node.js. Consider an alternative installation option.

Categories

  • Unix OS
  • Php
  • MySQL
  • JavaScript
  • Package Managers
  • Docker
  • Seo

Latest comments

alex, я вижу 2 причины почему так может быть. Не в...
root-i
04.07.22
Сделал все так как написано в статье, не работает.
alex
04.07.22
Как вариант это может происходить из-за неизвестно...
root-i
21.01.22
Чтобы убрать ошибку Uncaught TypeError: $ is not a...
wlad2.ru
11.01.22

I share information in which I needed help and spent a lot of time figuring it out. If the information helped at least one person, then this site was not created in vain.

Thank you for the continuation of the site:
Contacts

Telegram Viber Mail

Search for articles

  • Sign in
  • Create Account

Powered by chmod -R