Top Nav

Archive | Uncategorized

Fixing “Size of a request header field exceeds server limit.” error

This error from Apache is typically caused by a very large cookie. In Apache the “LimitRequestFieldSize” directive sets this limit. The default is 8190 bytes. To change the file create a file at:

/etc/httpd/conf.d/custom.conf

or

/etc/apache2/conf.d/custom.conf

containing the desired change:

Reload Apache after adding the file with:

/sbin/service apache2 restart

or

/sbin/service httpd restart

0

AWS CLI V2 Install

Using the bundled installer it’s easy to install or upgrade to version 2 of the AWS CLI:

Here’s a link to full instructions:

https://docs.aws.amazon.com/cli/latest/userguide/install-cliv2-linux.html

0

Block On X-Forwarded-For

Block an IP address based on the X-Forwarded-For header:

 

 

0

MySQL – Run Command On All Tables

Here’s a one-liner to run a SQL command on all tables in a database:

  • Replace “show create table” with the command that you wish to execute.
  • Replace “mydb” with your database name.
  • Replace “root” and “mypassword” with you username and password.
  • Replace “localhost” with your database server hostname or IP address.

 

0