Disabling HTTP/2 for a specific location

khav nginx-forum at forum.nginx.org
Tue Aug 16 11:19:35 UTC 2016

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

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


P.S In case you have some time maybe you could suggest a patch to make it
work (

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,268988,268988#msg-268988

More information about the nginx mailing list