Tried a v2.2 YAML tutorial, getting 404 when curl'ing localhost

@cakiwi
I added the http->https port redirection back in with the following file:

# /etc/traefik/dynamic/redirect.yml
http:
  routers:
    http:
      entryPoints:
        - http
      middlewares:
        - https_redirect
      rule: HostRegexp(`{any:.+}`)
      service: noop

  services:
    # noop service, the URL will be never called
    noop:
      loadBalancer:
        servers:
          - url: http://192.168.0.1

  middlewares:
    https_redirect:
      redirectScheme:
        scheme: https
        permanent: true

Everything started working when using the syntax:

curl https://whoami.XXXX.com --resolve whoami.XXXX.com:443:127.0.0.1 -k -L

So your suggestion about the rule was in fact accurate and has been marked as the solution.