504 Gateway Time-out media temple
Maxim Dounin
mdounin at mdounin.ru
Tue Oct 2 15:11:58 UTC 2012
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
More information about the nginx
mailing list