Category Archives: Linux

Upstream sent too big header while reading response

Edit the Nginx Configuration File

Open the Nginx configuration file for your site. This is typically located in  /etc/nginx/nginx.conf.

Increase the Buffer Size

fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;

Example Code

location ~ \.php$ {
include fastcgi_params;
fastcgi_pass 172.26.0.6:9000;
fastcgi_buffers 16 16k;
fastcgi_buffer_size 32k;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}

Test the Nginx Configuration

After making changes, test the Nginx configuration to ensure there are no syntax errors:

sudo nginx -t

Reload Nginx

If the configuration test is successful, reload Nginx to apply the changes:

sudo systemctl reload nginx

 

Navigate to a Folder from Any Location by Typing a Letter – Linux

Step 1: Add the alias to your shell configuration file

Open your shell configuration file in a text editor. Depending on your shell, this could be:

nano ~/.bashrc

Step 2: Add the alias

Add the following line to the file:

alias h=’cd /var/www/html’

Step 3: Save and reload

Save the file and exit the editor. Then, reload the shell configuration to apply the changes:

source ~/.bashrc

Step 4: Test it

Now, you can simply type h in your terminal, and it will take you directly to /var/www/html.

/var/crash/ files

They are crash dumps of the kernel, i.e. files that contains useful information to recover the state of the kernel when it was crashing. These files are for your kernel what core dumps are for ordinary executables. There exists an utility that can be used to analyze those files : crash

You can delete files in under /var/crash if you’re willing to lose useful information needed to debug those crashes.