A
A
Artem Kravchenko2016-04-28 09:44:59
Nginx
Artem Kravchenko, 2016-04-28 09:44:59

Why is the https connection dropping?

Hello. Recently enabled https on the site. And the uploads from 1C began to fall off, which take longer than 2 minutes. On http everything is fine. It costs nginx and apache2, nginx works as a proxy. Here is the config:

server {
  listen 80;
    listen       443 ssl;

    server_name sitename.ru *.sitename.ru;
    root /home/sitename/www;
    access_log /var/log/nginx.access.log;
  error_log /var/log/nginx.error.log;

    ssl_certificate      sites-available/sitename_certificate_bundled.crt;
    ssl_certificate_key  sites-available/sitename_privatekey.key;
    ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
    ssl_ciphers  "HIGH:!RC4:!aNULL:!MD5:!kEDH";
    add_header Strict-Transport-Security 'max-age=604800';

    error_page 502 /502.html;
    error_page 500 /502.html;

    location = /502.html {
        root /home/sitename/errors;
    }

    location ~* \.(js|jpg|jpeg|gif|png|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|xml|docx|xlsx)$ {
        root /home/sitename/www/;
        index index.php index.html;
        access_log off;
        expires 30d;
    }
    
    set $subdomain "www";
    if ($host ~* "^(.+)\.sitename\.ru$") {
        set $subdomain $1;
    }

    location = /robots.txt {
        rewrite ^/robots.txt /robots.php last;
    }

    location = /island.xml {
        rewrite ^/island.xml /islands/$subdomain.island.xml last;
    }

    location ~ /\.ht {
        deny all;
    }

    location / {
        proxy_pass http://127.0.0.1:8080/;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-for $remote_addr;
        proxy_set_header Host $host;
        proxy_connect_timeout 60;
        proxy_send_timeout 90;
        proxy_read_timeout 12h;
        proxy_redirect off;
        proxy_set_header Connection close;
        proxy_pass_header Content-Type;
        proxy_pass_header Content-Disposition;
        proxy_pass_header Content-Length;
    }

Tell me, how can I solve the problem?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
DuD, 2016-04-28
@DuD

Try setting proxy_send_timeout greater than 120

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question