How To Fix 504 Gateway Time-out on Nginx

In this tutorial, we will show you how to fix 504 gateway time-out on the Nginx web server on the Linux server. If you run an Nginx web server you may have already encountered the annoying 504 Gateway Time-out errors. This is a pretty common error and is generated most probably by the PHP max execution time limit, or by the FastCGI read timeout settings. This article assumes you have at least b...