Welcome! Log In Create A New Profile

Advanced

Re: 504 Gateway Time-out media temple

Maxim Dounin
October 02, 2012 11:14AM
Hello!

On Tue, Oct 02, 2012 at 10:56:58AM -0400, samueleast wrote:

> hi maxim thanks for the reply
>
> i cant find out where these files and variables are on my hosting to edit i
> have checked all files in my nginx folder and i cant see those options in
> there anywhere.
>
> will there just be a file with
>
> proxy_pass
> fastcgi_pass
> proxy_read_timeout
> fastcgi_read_timeout.
>
> i tried editing the nginx.conf file to
>
> http {
> include mime.types;
> default_type application/octet-stream;
>
> #log_format main '$remote_addr - $remote_user [$time_local] "$request"
> '
> # '$status $body_bytes_sent "$http_referer" '
> # '"$http_user_agent" "$http_x_forwarded_for"';
>
> #access_log /var/log/nginx/access.log main;
>
> sendfile on;
> #tcp_nopush on;
> #keepalive_timeout 0;
> keepalive_timeout 120;
> #tcp_nodelay on;
>
> #gzip on;
> #gzip_disable "MSIE [1-6]\.(?!.*SV1)";
>
> server_tokens off;
>
> server {
> location / {
> fastcgi_read_timeout 900s; # 15 minutes
> }
> }
> include /etc/nginx/conf.d/*.conf;
> }
>
> am i doing this correctly?

The "include /etc/nginx/conf.d/*.conf;" in your config suggests
servers are configured somewhere in /etc/nginx/conf.d/.

The way you added fastcgi_read_timeout won't work as it affects
only the server{} block you've added. You may try adding
fastcgi_read_timeout and/or proxy_read_timeout at http level
instead, i.e.

http {
...

fastcgi_read_timeout 900s;
proxy_read_timeout 900s;

include /etc/nginx/conf.d/*.conf;
}

This will work as long as they aren't redefined in your server
configs in /etc/nginx/conf.d/.

--
Maxim Dounin
http://nginx.com/support.html

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

504 Gateway Time-out media temple

samueleast October 02, 2012 09:44AM

Re: 504 Gateway Time-out media temple

Maxim Dounin October 02, 2012 10:08AM

Re: 504 Gateway Time-out media temple

samueleast October 02, 2012 10:56AM

Re: 504 Gateway Time-out media temple

Maxim Dounin October 02, 2012 11:14AM

Re: 504 Gateway Time-out media temple

samueleast October 02, 2012 11:23AM

Re: 504 Gateway Time-out media temple

(mt) Drew October 10, 2012 12:41PM

Re: 504 Gateway Time-out media temple

nikandriko April 30, 2013 05:49PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 139
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready