Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 20th February 2013, 20:13
onastvar onastvar is offline
Senior Member
Join Date: Apr 2008
Location: U.S.A.
Posts: 197
Thanks: 61
Thanked 12 Times in 12 Posts
Exclamation NGINX 504 Gateway Time-out

After last Nginx update couple of days ago, I'm getting the following 504 Gateway Time-out nginx/1.2.7 when I use any of the web forms (oSticket & WordPress)

2013/02/20 23:38:13 [error] 14032#0: *15756 upstream timed out (110: Connection timed out) while reading response header from upstream, client:,
server: mydomain.com, request: "POST /contact/ HTTP/1.1", upstream: "fastcgi://", host: "mydomain.com", referrer: "http://mydomain.com/contact/"

Did anything change within nginx, anyone else has this issue, any idea how to fix. Thanks!

Here's my existing nginx directive:
location / {
                try_files $uri $uri/ /index.php?$args;
      # Add trailing slash to */wp-admin requests.
       rewrite /wp-admin$ $scheme://$host$uri/ permanent;

       location ~*  \.(jpg|jpeg|png|gif|css|js|ico)$ {
                expires max;
                log_not_found off;
location ~* \.php$ {
    fastcgi_index index.php;
    fastcgi_split_path_info ^(.+\.php)(.*)$;
    include fastcgi_params;
    fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
    fastcgi_temp_file_write_size 10m;
    fastcgi_busy_buffers_size 512k;
    fastcgi_buffer_size 512k;
    fastcgi_buffers 16 512k;
    fastcgi_connect_timeout 300;
    fastcgi_send_timeout 300;
    fastcgi_read_timeout 300;
    fastcgi_intercept_errors on;
    fastcgi_next_upstream error invalid_header timeout http_500;
ISPConfig | Debian Wheezy | BIND | Dovecot 2.1.7 | Apache 2.2.22 | MySQL 5.5.38 | PHP 5.3.22

Last edited by onastvar; 21st February 2013 at 08:12.
Reply With Quote
Sponsored Links


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hacked server Captain Installation/Configuration 8 23rd December 2010 11:39
CPU load locks up box. Apache or MYSQL related. crypted General 61 29th October 2010 23:16
rkhunter report Captain Installation/Configuration 6 10th October 2010 14:05
adding mail boxes kwickcut Server Operation 20 11th August 2010 02:02
504 Bad gateway, Fedoracore 5 ISPconfig main3 Installation/Configuration 12 20th August 2006 12:38

All times are GMT +2. The time now is 12:03.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.