NginX: Gateway Time-Out
One of the web server that run on Nginx is having 504 Gateway Time-out error. This can be fixed by increasing the send_timeout directive in nginx.conf.
Steps as below:
1. Open the nginx configuration files via your favourite text editor:
$ vi /usr/local/nginx/nginx.conf |
2. Find send_timeout directive and increase the value higher. In this case, I increase the value from 3m to 10m:
send_timeout 10m; |
3. Save the file and reload nginx using following command:
$ kill -HUP `ps -ef | grep nginx | grep master | awk {'print $2'}` |
Notes: Some user might still get this error after applying the solution. It also depending on how your application works. Other directives that need to be consider for this error are:
client_header_timeout client_body_timeout send_timeout fastcgi_read_timeout |
Related Posts
- Apache: Kill Certain httpd/PHP Processes in DSO
- Linux: Install and Configure Varnish as Cache Server
- Linux: 2 Way File Synchronization and Replication using Unison + FTP
- Linux: Log Rotation Customization
- Linux: Install JAWStats – Beautiful Statistic using AWStats Core
- Linux: Install LiteSpeed Web Server
- Sort and Count IP in Apache Access Logs
- Install Pound as Web Load Balancer
- System Administration: Managing Remote Location
- Export SVN Repository to Web Files in public_html
If you enjoyed this article, please consider sharing it!
2 Responses to NginX: Gateway Time-Out
Leave a Reply Cancel reply
Sci/Tech – Google News- Moon meteor blast was visible to naked eye: NASA - Zee News - India - Zee News 19 May 2013
- BMW 5 Series LCI - Sedan, Touring and Gran Turismo - ASEAN Automotive News (blog) 19 May 2013
- Check out the new 2013 Peugeot RCZ Magnetic Limited Edition - Motoroids 19 May 2013
- Google Glass: Cool or creepy? - Mail & Guardian Online 19 May 2013
- Lexus IS - TRD works its magic on the third-gen - ASEAN Automotive News (blog) 19 May 2013



Did that (3600 was my value for up to 1 hour) but still no dice.. times out in 60 seconds. I checked all other values.. under fastcgi etc. But nothing.
You might need to check another area as your application might different requirement. I have updated the post by adding Notes.