Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Browsers still using HTTP2 #78

Closed
wibimaster opened this issue May 2, 2022 · 5 comments
Closed

Browsers still using HTTP2 #78

wibimaster opened this issue May 2, 2022 · 5 comments
Labels
bug Something isn't working

Comments

@wibimaster
Copy link

Hi !

I'm trying to build an HTTP3 server with your Docker image, but can't get it working :/

I'm starting it with the command :

docker run --rm   -p 0.0.0.0:8888:80   -p 0.0.0.0:443:443/tcp   -p 0.0.0.0:443:443/udp   \
  -v "$PWD/tests":/static:ro   \
  -v "$PWD/tests/modules.conf":/etc/nginx/main.d/modules.conf:ro   \
  -v "$PWD/tests/perl_rewrite.conf":/etc/nginx/conf.d/perl_rewrite.conf:ro   \
  -v "$PWD/tests/static.conf":/etc/nginx/conf.d/static.conf:ro   \
  -v "$PWD/tests/https.conf":/etc/nginx/conf.d/https.conf:ro   \
  -v "$PWD/tests/localhost.crt":/etc/nginx/ssl/localhost.crt:ro   \
  -v "$PWD/tests/localhost.key":/etc/nginx/ssl/localhost.key:ro  \
  --name test_nginx \
  -t macbre/nginx-http3:latest

Before that I rewrote the https.conf to send the Alt-Svc header with port 443 instead of 8443.

I just replaced the certificates by some I built with Certbot, to make them valid.

If I load my domain in Chrome or Firefox (http3 enabled), the It works page (index.html) loads, but in the Network tab I can see it use HTTP2 instead of 3.

If I test it on https://www.http3check.net/, it fails with "QUIC connection could not be established"

Do you have any clue, or a working live example ?

Thanks !

@macbre macbre added the bug Something isn't working label May 14, 2022
@macbre
Copy link
Owner

macbre commented May 19, 2022

Did you try checking your server with curl?

        docker run --rm --network host ymuski/curl-http3 \ 
           curl -v https://localhost:8889 --http3 2>&1 | tee /tmp/h3

Of course replace the localhost with your domain :)

Run it both from your server directly and from your local machine.

@macbre
Copy link
Owner

macbre commented May 19, 2022

Additionally, is UDP port 443 open at the firewall?

@macbre
Copy link
Owner

macbre commented Jun 8, 2022

Should resolve macbre/phantomas#970

@macbre
Copy link
Owner

macbre commented Jun 13, 2022

Interestingly, Firefox 100.0 on MacOS works fine:

Screenshot 2022-06-13 at 13 49 39

@macbre
Copy link
Owner

macbre commented Jun 13, 2022

Let's merge this one with #81.

@macbre macbre closed this as completed Jun 13, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants