Quantcast
Channel: Nginx Forum - Nginx Mailing List - English
Viewing all articles
Browse latest Browse all 7229

Disabling HTTP/2 for a specific location (3 replies)

$
0
0
I use nginx 1.11.3 with nginx upload module.The problem is that Nginx upload module don't support HTTP/2 and thus when you upload you get 500 Internal Error.

For now i am trying to use a separate server block to disable http2 just for the upload and enable it for the rest

server {
listen 443;
server_name mywebsite.com/upload;
....
}

server {
listen 443 http2 default_server reuseport deferred;
server_name mywebsite.com;
...
}

However its not working as i expected as nginx is still using HTT/2 for the /upload location


Regards


P.S In case you have some time maybe you could suggest a patch to make it work ( https://github.com/Austinb/nginx-upload-module/blob/2.2/ngx_http_upload_module.c)

Viewing all articles
Browse latest Browse all 7229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>