V
V
vasyok2282021-11-17 22:19:45
Nginx
vasyok228, 2021-11-17 22:19:45

Why is Nginx interrupting the server when downloading files?

Why is downloading static files from the server interrupted?
There is a directive where you can go through the folders and download the desired file. Sizes vary from 10MB to 2GB. But I keep getting 'Interrupted: network error' = it's in the browser, in the downloads list.

server {
    server_name sfile.site.com;
    root /var/www/sfile;
    
    index index.html;
 
    location / {
        try_files $uri $uri/ /index.php$is_args$args;
        add_header X-Robots-Tag "noindex, nofollow" always;
        autoindex on;

        sendfile on;
        tcp_nodelay on;
        tcp_nopush on;
        directio 5m;
        
        proxy_connect_timeout 600;
        proxy_send_timeout 600;
        proxy_read_timeout 600;
    }

    add_header 'Access-Control-Allow-Origin' '*';
    add_header 'Access-Control-Allow-Headers' 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Content-Range,Range';
    add_header Access-Control-Allow-Credentials 'true';
}

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
ky0, 2021-11-17
@ky0

Downloading directly from disk, without any layers in the form of PHP scripts? If it repeats from different points - shoot while downloading tcpdump and smoke it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question