I’ve got a standalone WebApplication under Nginx and everything works fine, except webUpload.
Calling the app directly to its port at http://mydomain.com:2000, webupload works fine.
Calling the app through Nginx at https://mydomain.com, the app works fine but the webupload doesn’t works.
Debugging the app at https://mydomain.com looking for WebFileUploader events I can see the WebFileUploader.UploadProgress is fired untill 100%, but the WebFileUploader.UploadComplete is not fire.
This is my Nginx server configuration:
server {
listen 443;
server_name mydomain.com;
root /var/www/html;
error_page 502 /error.html;
location /error.html {
allow all;
}
# Add index.php to the list if you are using PHP
index index.html index.htm index.nginx-debian.html;
ssl_certificate /etc/nginx/certificati/mydomain/certificate.crt;
ssl_certificate_key /etc/nginx/certificati/mydomain/certificate.key;
ssl on;
location / {
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto https;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Host $remote_addr;
gunzip on;
gzip on;
gzip_proxied any;
proxy_buffering off;
proxy_read_timeout 5m;
proxy_pass_request_headers on;
proxy_pass http://127.0.0.1:2000$request_uri;
}
}