C
C
Chaly952020-01-04 16:59:01
Nginx
Chaly95, 2020-01-04 16:59:01

How to increase nginx server response time?

A 504 504 gateway time-out error occurs when going to the "All products" page.
CMS Wordpress, worth the Woocommerce plugin.
Initially, I sinned on the database, restoring the backup copy of the database did not help, this version was thrown back.
As far as I understand, it simply exceeds the page load time limit.
But when looking at the file /etc/nginx/nginx.conf
I didn't find the time limit setting
Code /etc/nginx/nginx.conf

user  apache;
worker_processes  1;

error_log  /var/log/nginx/error.log warn;
pid        /var/run/nginx.pid;


events {
    worker_connections  1024;
}


http {
    server_tokens off;
    client_body_buffer_size 128k;
    proxy_buffering on;
    proxy_buffer_size 64k;
    proxy_buffers 4 128k;
    proxy_busy_buffers_size 128k;
    proxy_max_temp_file_size 0;
    
    include       /etc/nginx/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  65;

    #gzip  on;

    include /etc/nginx/conf.d/*.conf;
  include /etc/nginx/vhosts/*/*.conf;
server {
        server_name localhost;
 disable_symlinks if_not_owner;
  listen 80;
  listen [::]:80;
  include /etc/nginx/vhosts-includes/*.conf;
  location @fallback {
    error_log /dev/null crit;
    proxy_pass http://127.0.0.1:8080;
    proxy_redirect http://127.0.0.1:8080 /;
    proxy_set_header Host $host;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto $scheme;
    access_log off ;
  }
    }
  client_max_body_size 128m;
}

Tell me how to increase the waiting time?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Arthur, 2020-01-04
@chaly95

It usually costs either 30 or 60 seconds, it's a lot, I would advise you to dig in the direction of speeding up the response from WordPress.
And the answer is googled in 2 seconds

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question