ZipperZapper
Verified User
- Joined
- Nov 30, 2015
- Messages
- 142
Since a few days my provider provided my homeadress with IPv6. In combination with the "HTTP/2 and SPDY indicator"-extension in Firefox, I noticed my websites aren't served over HTTP/2 when I'm surfing over IPv6. When I use a line with IPv4, HTTP/2 is used.
After checking the Nginx-configfiles, I found something interesting. I use this:
This turns into:
Turns out the |MULTI_IP| token assigns the 'listen' part in front and the ':443 ssl;' part at the back by default, but there's no way to assign http2 too? You can't add it in the config file after |MULTI_IP|, because that will look like this and obviously fail:
Any ideas on how to fix/improve this? Tried to look for the place where |MULTI_IP| is defined (the 'listen' and ':443 ssl;' need to come from somewhere), but can't find it.
After checking the Nginx-configfiles, I found something interesting. I use this:
server
{
listen |IP|:|PORT_443| ssl http2;
|MULTI_IP|
}
This turns into:
server
{
listen myIPv4:443 ssl http2;
listen [myIPv6]:443 ssl;
}
Turns out the |MULTI_IP| token assigns the 'listen' part in front and the ':443 ssl;' part at the back by default, but there's no way to assign http2 too? You can't add it in the config file after |MULTI_IP|, because that will look like this and obviously fail:
listen [myIPv6]:443 ssl; http2;
Any ideas on how to fix/improve this? Tried to look for the place where |MULTI_IP| is defined (the 'listen' and ':443 ssl;' need to come from somewhere), but can't find it.
Last edited: