How to enable HTTP/3 with Nginx?

Pieter

Verified User
Joined
Mar 27, 2016
Messages
33
I'm having trouble enabling HTTP/3 with Nginx.

Have compiled Nginx with the "--with-http_v3_module" \
Config located here:
/usr/local/directadmin/custombuild/custom/nginx/configure.nginx

Have tried the the following in my template:

# 1st attempt (not sure how to enable for IPv6):
listen |IP|:|PORT_443| ssl;
listen |IP|:|PORT_443| quic reuseport;
http2 on;
|MULTI_IP|

# 2nd attempt (hardcoding my IPs)
listen 1.234.567.89:443 ssl;
listen [2001:123:aaa:456:0:0:0:1]:443 ssl;
http2 on;
listen 1.234.567.89:443 quic reuseport;
listen [2001:123:aaa:456:0:0:0:1]:443 quic reuseport;

Added the header:
add_header Alt-Svc 'h3=":443"; ma=86400';

Config located here:
/usr/local/directadmin/data/templates/custom/nginx_server_secure.conf

Using (https://http3check.net/):
HTTP over TCP request to server failed, forcing my ipv4 results in QUIC is supported & HTTP/3 is supported

Using SSL Labs I get various warnings: 'Failed to communicate with the secure server' & 'Unexpected failure : No supported protocol found' & 'Unexpected failure'.

Reverting to my original nginx_server_secure.conf listening block:

listen |IP|:|PORT_443| ssl;
http2 on;
|MULTI_IP|

brings back my A+ score on SSL Labs


Am I missing something?
 
Back
Top