Use nginx reverse proxy for IIS. How to upload large file?

A small file loads without problems, and on the big stumbles, I think maybe timeout crashes increased, but to no avail, anyone know how to fix?

client_max_body_size not working

worker_processes auto;

error_log logs/error.log; #change to your directory
pid logs/; #change to your directory

events {
 worker_connections 1024;

http {
 proxy_buffer_size 128k;
 proxy_buffers 4 256k;
 proxy_busy_buffers_size 256k;
 client_max_body_size 500m;

 server {
 listen 80;
 server_name localhost;
 return 301 https://$server_name$request_uri;

 server {
 listen 443 default;
 server_tokens off;

 ssl on;
 ssl_certificate_key ../ssl/domain.key;
 ssl_session_timeout 5m;
 ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
 ssl_ciphers directives HIGH:!aNULL:!MD5;
 ssl_prefer_server_ciphers on;

 keepalive_timeout 60s;
 sendfile on;
 tcp_nodelay on;
 tcp_nopush on; 

 client_max_body_size 500m;
 client_header_timeout 3m;
 client_body_timeout 3m;
 timeout 3m; 

 # Optional optimisation - refer
 # "ssl_session_cache" shared:SSL:10m;
 location / { 
 sub_filter '' '';
 sub_filter_once off;
 sub_filter_types text/css text/xml text/javascript application/x-javascript. 

 proxy_set_header Host $Host;
 proxy_set_header X-Forwarded-Proto $scheme;
 proxy_set_header X-Forwarded-Host $host;
 proxy_set_header X-Forwarded-Server $host;
 proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
 proxy_set_header X-Real-IP $remote_addr;
 proxy_connect_timeout 10m;
 proxy_send_timeout 10m;
 proxy_read_timeout 10m; 

 gzip on;
 gzip_comp_level 5;
 gzip_proxied any;
 gzip_types text/plain text/xml text/css application/javascript application/x-javascript text/javascript;
 gzip_vary on;
 "gzip_disable" "MSIE [1-6]\.(?!.*SV1)";

July 4th 19 at 22:53
0 answer

Find more questions by tags IISNginx