Webinoly is just the perfect tool for NGINX experts. Give it a try!
+2 votes
880 views
by Expert
closed by

Nginx 1.25.0 mainline version has been released, featuring experimental HTTP/3 support.

How to test with Webinoly:

  • Install Webinoly using the "clean" option: wget -qO weby qrok.es/wy && sudo bash weby -clean
  • Set the Nginx "mainline" branch in the Webinoly configuration file: sudo nano /opt/webinoly/webinoly.conf
  • Install Nginx and LEMP: sudo stack -lemp
  • Create a new site: sudo site example.com -wp
  • Add an SSL cert to your site: sudo site example.com -ssl=on
  • Add a new listen directive with the quic parameter:
sudo nano /etc/nginx/sites-available/example.com

# Include QUIC support:
listen 443 ssl http2;
listen 443 quic reuseport; # QUIC
listen [::]:443 ssl http2;

  • Add a response header telling the browser that an upgrade to QUIC is available.
# Add a custom http header to Webinoly
sudo nano /opt/webinoly/templates/source/custom_header_https_webinoly.data

# Include this two lines:
add_header Alt-Svc 'h3=":$server_port"; ma=86400';
add_header X-protocol $server_protocol always;

# Reload the HTTP headers in Webinoly to changes take effect:
sudo webinoly -custom-headers=reload

And that it! Easy, right?

References: https://www.nginx.com/blog/binary-packages-for-preview-nginx-quic-http3-implementation/

closed with the note: Done!
by Expert

By the way, it will be included natively for sure in Webinoly.

Right now, it's considered an experimental feature, but we hope once Nginx 1.26.0 "Stable" is released next year (2024), it will be included by default in Webinoly.

by Rookie
edited by

Very cool! I started using webinoly very recently on my new server, I'm liking it so far. 

I had a little bit of trouble getting HTTP3 to work but after reading the referenced nginx blog I noticed http3 needs to accept traffic over UDP. After adding 443/udp to my firewall it instantly functioned. 

By the way, I was getting a deprecation warning:

nginx: [warn] the "listen ... http2" directive is deprecated, use the "http2" directive instead in /etc/nginx/sites-enabled/

# This is old
listen 443 ssl http2;
listen 443 quic reuseport; # QUIC
listen [::]:443 ssl http2;

# Should be
listen 443 ssl;
listen 443 quic reuseport; # QUIC
listen [::]:443 ssl;
http2 on;
by Rookie
reshown by
Hi Cristhian, any update regarding HTTP/3? Thank you!
by Expert
Not sure! What kind of update are you waiting for?

Just read the original post and the comments, everything is there.
by Rookie
I intended to inquire about when it would be enabled by default. Anyway, thank you for sharing this. I will test it right away.
by Expert
Please, read the first comment, the answer is there.
by Rookie
Yes, I just checked that it's still experimental. Thank you!

1 Answer

0 votes
by Expert

Solution is already included in the question for community interest.

Welcome to the Community site for Webinoly.

Our Optimized LEMP Web Server is a powerful set of commands for doing just about anything you could wish.

With Webinoly you can set up your NGINX web server in just one step.

* * * * * * *

To report a bug, please create a new issue on GitHub or ask a question here with the bug tag.
Webinoly Support Paypal Donations

PayPal · GitHub Sponsors · Bitcoin

It is very important that any visitor to the site read the disclaimer, terms of use and privacy and legal statement before start browsing.

...