Welcome! Log In Create A New Profile

Advanced

Hello - NGINX-QUIC questions

Posted by austx 
Hello - NGINX-QUIC questions
January 02, 2024 12:28PM
Happy New Year, everyone!

I have been using NGINX-SSL for a while and decided to try NGINX-QUIC. It fails to start due to nginx: [emerg] invalid parameter "quic". Any help is appreciated.

1. Installed the pre-built binary packages on Ubuntu 22.04 following https://nginx.org/en/linux_packages.html
2. Modified the config file to support QUIC following https://www.nginx.com/blog/binary-packages-for-preview-nginx-quic-http3-implementation/
server {
listen 80;
listen 443 quic reuseport;
listen 443 ssl backlog=102400 reuseport;
server_name example.com;

ssl_certificate /etc/nginx/ssl/rsa-cert.crt;
ssl_certificate_key /etc/nginx/ssl/rsa-key.key;
ssl_protocols TLSv1.3;
ssl_session_tickets off;
ssl_session_cache off;

root /var/www/example.com;
index index.html;

location / {
# advertise that QUIC is available on the configured port
add_header Alt-Svc 'h3=":$server_port"; ma=86400';
}
}
3. Restart NGINX
$ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
$ systemctl status nginx.service
× nginx.service - nginx - high performance web server
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Tue 2024-01-02 10:21:30 CST; 1min 4s ago
Docs: https://nginx.org/en/docs/
Process: 108297 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=1/FAILURE)
CPU: 4ms

Jan 02 10:21:30 amd systemd[1]: Starting nginx - high performance web server...
Jan 02 10:21:30 amd nginx[108297]: nginx: [emerg] invalid parameter "quic" in /etc/nginx/sites-enabled/example.com:3
Jan 02 10:21:30 amd systemd[1]: nginx.service: Control process exited, code=exited, status=1/FAILURE
Jan 02 10:21:30 amd systemd[1]: nginx.service: Failed with result 'exit-code'.
Jan 02 10:21:30 amd systemd[1]: Failed to start nginx - high performance web server.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready