Redirect http to http2, unable to get it working

I'm migrating my (home server) version 1 to version 2 of traefik. I run my services in docker, so I'm mounting the docker socket into traefik. So far so good. Here is my traefik config file:

 log:
   level: DEBUG
 
 entryPoints:
   http:
     address: :80
   https:
     address: :443
 
 certificatesResolvers:
   letsEncrypt:
     acme:
       email: xxxxxxx
       storage: /etc/traefik/acme/acme.json
       httpChallenge:
         # used during the challenge
         entryPoint: http
 
 providers:
   docker:
     endpoint: unix:///var/run/docker.sock
     exposedByDefault: false

Now, when I start a container, I use this:

docker run --name=test \
            --expose 80 \
            --rm \
            -l "traefik.enable=true" \
            -l "traefik.http.routers.whoami.rule=Host(\"test.xxxxxx.com\")" \
            -l "traefik.http.routers.whoami.tls=true" \
            -l "traefik.http.routers.whoami.tls.certresolver=letsEncrypt" \
            -l "traefik.http.routers.whoami.service=whoami" \
            -l "traefik.http.services.whoami.loadbalancer.server.port=80" \
            containous/whoami

This works, but only when I directly go to https://test.xxxxxx.com. When I go to http://test.xxxxx.com, I get a 404. I tried a lot of things, but for some reason I can't get it to work. Can someone please point me in the correct direction?

I prefer to have this automatic redirect to setup globally (so not per container), but I understood this is not possible in V2?

Hello,

Take a look to: