# HTTPS server
#
server {
listen |IP|:|PORT_443| ssl;
listen 127.0.0.1:|PORT_443| ssl;
listen [::1]:|PORT_443| ssl;
listen |IP|:|PORT_443| quic;
listen [::1]:|PORT_443| quic;
http2 on;
http3 on;
I've added nginx=0 to a domain conf options to disable reverse proxy
Was http/3 not enabled by default since NGINX 1.25?
[[email protected] nginx]# nginx -t
nginx: [emerg] unknown directive "http3" in /etc/nginx/nginx-vhosts.conf:44
nginx: configuration file /etc/nginx/nginx.conf test failed
[[email protected] nginx]#
[[email protected] nginx_reverse]# grep -C 2 'with-http_v3_module' /usr/local/directadmin/custombuild/custom/nginx_reverse/configure.nginx
"--with-http_dav_module" \
"--with-http_v2_module" \
"--with-http_v3_module" \
"--with-http_image_filter_module" ${WITH_OPENSSL} \
"--add-module=../ngx_cache_purge" \
[[email protected] nginx_reverse]#
[[email protected] nginx_reverse]# grep http3 /etc/nginx/nginx-vhosts.conf -C 1
http2 on;
http3 on;
[[email protected] nginx_reverse]#
And as soon as I re-compile NGINX with:
Bash:[[email protected] nginx_reverse]# grep -C 2 'with-http_v3_module' /usr/local/directadmin/custombuild/custom/nginx_reverse/configure.nginx "--with-http_dav_module" \ "--with-http_v2_module" \ "--with-http_v3_module" \ "--with-http_image_filter_module" ${WITH_OPENSSL} \ "--add-module=../ngx_cache_purge" \ [[email protected] nginx_reverse]#
I can enable http3:
Bash:[[email protected] nginx_reverse]# grep http3 /etc/nginx/nginx-vhosts.conf -C 1 http2 on; http3 on; [[email protected] nginx_reverse]#
The QUIC and HTTP/3 support is experimental, caveat emptor applies.
And as soon as I re-compile NGINX with:
Bash:[[email protected] nginx_reverse]# grep -C 2 'with-http_v3_module' /usr/local/directadmin/custombuild/custom/nginx_reverse/configure.nginx "--with-http_dav_module" \ "--with-http_v2_module" \ "--with-http_v3_module" \ "--with-http_image_filter_module" ${WITH_OPENSSL} \ "--add-module=../ngx_cache_purge" \ [[email protected] nginx_reverse]#
I can enable http3:
Bash:[[email protected] nginx_reverse]# grep http3 /etc/nginx/nginx-vhosts.conf -C 1 http2 on; http3 on; [[email protected] nginx_reverse]#
nginx version: nginx/1.26.0
built by gcc 11.4.0 (Ubuntu 11.4.0-1ubuntu1~22.04)
built with OpenSSL 3.0.2 15 Mar 2022
TLS SNI support enabled
configure arguments: --user=nginx --group=nginx --prefix=/usr --sbin-path=/usr/sbin --conf-path=/etc/nginx/nginx.conf --pid-path=/var/run/nginx.pid --http-log-path=/var/log/nginx/access_log --error-log-path=/var/log/nginx/error_log --without-mail_imap_module --without-mail_smtp_module --with-http_ssl_module --with-http_realip_module --with-http_stub_status_module --with-http_gzip_static_module --with-http_dav_module --with-http_v2_module --with-http_v3_module --add-module=../ngx_cache_purge --with-cc-opt=''-D FD_SETSIZE=32768''
Do you manually addI can enable http3:
http3 on;
to the nginx config? Or with template system? I want to test it out but the template system doesn't have this yet if I'm correct to add that line below http2 on;
Do you manually addhttp3 on;
to the nginx config?