Recently, NGINX already added http3 as a default module, so, no need for too much effort to install nginx-http3. Google's whole site already supported http3.
NGINX
how to check whether your nginx supports http3 or not? run nginx -V, if get those result
if you can find --with-http_v3_module, that's mean your nginx support http3.
NGINX CONFIG
here is the following config
listen 443 quic reuseport; # turn on http3
listen 443 ssl http2; # turn on http2 as optional
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3; # add http3 support protocols
ssl_certificate fullchain.pem; # http3 run base on TSL, so must add https first
ssl_certificate_key privkey.pem; # http3 run base on TSL, so must add https first
add_header Alt-Svc 'h3=":443"; ma=86400'; # tell browser your server support http3
add_header QUIC-Status $http3; # tell browser your server support http3
TIP
http3 run in UDP protocols, so definitely you need to make sure 443/UDP is able to access.
FIREWALL GROUP
add 443/UDP rule
Ubuntu ufw
run this command to make sure your operation system can access 443/UDP port
HTTP3
BACKGROUND
Recently, NGINX already added http3 as a default module, so, no need for too much effort to install nginx-http3. Google's whole site already supported http3.
NGINX
how to check whether your nginx supports http3 or not? run
nginx -V
, if get those resultif you can find
--with-http_v3_module
, that's mean your nginx support http3.NGINX CONFIG
here is the following config
TIP
http3 run in UDP protocols, so definitely you need to make sure 443/UDP is able to access.
FIREWALL GROUP
add 443/UDP rule
Ubuntu ufw
run this command to make sure your operation system can access 443/UDP port
DOCKER port export
HOW TO VERIFY HTTP3
how to know that your http3 already deploy success
first way
in chrome, press F12, check the networking tab, if protocol display h3, that mean http3 already turn on.
second way
check this website
https://http3check.net/?host=https%3A%2F%2Fchat1.plhh.xyz%2F