Welcome! Log In Create A New Profile

Advanced

Disabling HTTP/2 for a specific location

August 16, 2016 07:19AM
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)
Subject Author Posted

Disabling HTTP/2 for a specific location

khav August 16, 2016 07:19AM

AW: Disabling HTTP/2 for a specific location

Lukas Tribus August 16, 2016 07:38AM

Re: AW: Disabling HTTP/2 for a specific location

Jim Ohlstein August 16, 2016 08:04AM

AW: AW: Disabling HTTP/2 for a specific location

Lukas Tribus August 16, 2016 08:26AM

Re: AW: AW: Disabling HTTP/2 for a specific location

khav August 18, 2016 12:53PM

Re: AW: AW: Disabling HTTP/2 for a specific location

khav August 19, 2016 03:10AM

AW: AW: AW: Disabling HTTP/2 for a specific location

Lukas Tribus August 18, 2016 04:00PM

Re: AW: AW: AW: Disabling HTTP/2 for a specific location

khav August 19, 2016 08:22AM

Re: AW: AW: AW: Disabling HTTP/2 for a specific location

Valentin V. Bartenev August 19, 2016 08:32AM

Re: AW: AW: AW: Disabling HTTP/2 for a specific location

khav August 19, 2016 09:48AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 258
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready