Answer the question
In order to leave comments, you need to log in
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
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question