Tips / Nginx

Archive for posts tagged Nginx errors

13: Permission denied while reading upstream using Nginx

Today I was investigating an issue in one of my customer servers and found a permission denied error on the logs: [crit] 26728#0: *547 open() "/var/lib/nginx/tmp/proxy/2/00/002" failed (13: Permission denied) while reading upstream, client:, server:, request: "GET /upload_photo.php HTTP/1.1", upstream: "", host: "", referrer: "" What was the problem? My customer wasn’t able […] Read more

How to Fix 502 Bad Gateway Error Using Nginx

Many times we can browse the web and find a 502 bad gateway error at Nginx.   There are a few reasons why you will find this message in  your webserver log, and here we will teach you how to fix it. How you might see the 502 Bad Gateway error Different websites may customize […] Read more

Nginx Error 413 Request Entity Too Large

Days ago, using Nginx as a Reverse proxy I found this weird error while trying to upload more than 2MB of data: Nginx Error 413 Request Entity Too Large After investigating I found the client_max_body_size directive determines the maximum accepted body size of client request. If size is greater than the given one, that’s when we get […] Read more

How to Fix 504 Gateway Timeout using Nginx

It is very common to see a 504 Gateway Timeout error using Nginx webserver. This timeout error is generated often by a number of reasons on the backend connection that is serving content. To fix 504 Gateway Time-out, you will have to figure out what configuration are you using. How you might see the 504 Gateway […] Read more