AW: Disabling HTTP/2 for a specific location

Jim Ohlstein jim at
Tue Aug 16 12:02:57 UTC 2016


On 08/16/16 07:37, Lukas Tribus wrote:
>> 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.
> Use a dedicated subdomain, like

This will not work unless the subdomain is also on a different IP and 
http2 is not enabled on that IP. If http2 is enabled for an IP then 
http2 is enabled on all servers listening on that IP, whether explicitly 
enabled or not.

>> For now i am trying to use  a separate server block to disable http2 just
>> for the upload and enable it for the rest
> This cannot work. The protocol is set in stone before a request is emitted, therefor you cannot select the protocol based on the location.
>> server_name;
> That's not a valid server_name. A server_name is a hostname.


More information about the nginx mailing list