Opened 11 months ago

Last modified 7 months ago

#2582 new defect

HTTP3 working with curl but not in Browser

Reported by: florian.s.senf@… Owned by:
Priority: major Milestone: nginx-1.27
Component: http/3 Version: 1.25.x
Keywords: Cc:
uname -a: Linux ubuntu 5.15.0-91-generic #101-Ubuntu SMP Tue Nov 14 13:30:08 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
nginx -V: nginx version: nginx/1.25.3
built with OpenSSL 1.1.1f 31 Mar 2020
TLS SNI support enabled
configure arguments: --with-cc-opt='-g -O2 -fdebug-prefix-map=/build/nginx-n37Hz9/nginx-1.25.3=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -Wdate-time -D_FORTIFY_SOURCE=2' --with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-z,now -fPIC' --prefix=/usr/share/nginx --conf-path=/etc/nginx/nginx.conf --http-log-path=/var/log/nginx/access.log --error-log-path=/var/log/nginx/error.log --lock-path=/var/lock/nginx.lock --pid-path=/run/nginx.pid --modules-path=/usr/lib/nginx/modules --http-client-body-temp-path=/var/lib/nginx/body --http-fastcgi-temp-path=/var/lib/nginx/fastcgi --http-proxy-temp-path=/var/lib/nginx/proxy --http-scgi-temp-path=/var/lib/nginx/scgi --http-uwsgi-temp-path=/var/lib/nginx/uwsgi --with-compat --with-debug --with-pcre-jit --with-http_ssl_module --with-http_stub_status_module --with-http_realip_module --with-http_auth_request_module --with-http_v2_module --with-http_v3_module --with-http_dav_module --with-http_slice_module --with-threads --with-http_addition_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_sub_module

Description

Hello,

I configured HTTP/3 for nginx 1.25. It's working when I call my website via curl. But it's showing here https://http3check.net/ that no connection could be established.

This is a clip of my conf file:
server {

listen 443 ssl;
listen [::]:443 ssl;
listen 443 quic reuseport;
server_name ...

http2 on;
http3 on;
http3_hq on;
quic_retry on;
ssl_early_data on;
quic_gso on;
quic_host_key /etc/ssl/..._2023.key;
add_header X-protocol $server_protocol always;

....

}
In the curl response it's showing:
HTTP/3 200
x-protocol: HTTP/3.0

But the browser check on https://http3check.net/ saying that it's not working.

Any idea for that?

Thank you!
Florian

Change History (2)

comment:1 by Roman Arutyunyan, 10 months ago

Try adding add_header Alt-Svc h3=":443".

If it won't help, please post the debug log.

comment:2 by m.herasimovich, 7 months ago

Milestone: nginx-1.25nginx-1.27

Ticket retargeted after milestone closed

Note: See TracTickets for help on using tickets.