title: Traefik v2: HTTPS returns `404 page not found`
body: <p>I followed the <a href="https://docs.traefik.io/getting-started/quick-start/" rel="nofollow noreferrer">quick start guide </a> and I use a basic <code>traefik.toml</code>:</p>
  
  <p><strong>traefik.toml</strong></p>
  
  <pre><code>[entryPoints]
    [entryPoints.web]
      address = ":80"
  
    [entryPoints.websecure]
      address = ":443"
  
  [api]
    dashboard = true
    insecure = true
  
  [providers.docker]
  </code></pre>
  
  <p><strong>docker-compose.yml</strong></p>
  
  <pre><code>version: "3.7"
  
  services:
    traefik:
      image: traefik
      ports: 
      - "8080:8080"
      - "80:80"
      - "443:443"
      volumes:
      - /var/run/docker.sock:/var/run/docker.sock
      - "$PWD/traefik.toml:/etc/traefik/traefik.toml"
  
    whoami:
      image: containous/whoami
      labels:
        - "traefik.http.routers.whoami.rule=Host(`whoami.docker.localhost`)"
  </code></pre>
  
  <p>The call of the HTTP endpoint:</p>
  
  <pre class="lang-sh prettyprint-override"><code>$ curl -H Host:whoami.docker.localhost http://127.0.0.1
  Hostname: aa6bfee60f2d
  IP: 127.0.0.1
  IP: 172.29.0.4
  </code></pre>
  
  <p>Call of the HTTPS endpoint:</p>
  
  <pre class="lang-sh prettyprint-override"><code>curl --insecure -H Host:whoami.docker.localhost https://127.0.0.1
  404 page not found
  </code></pre>
  
  <p><strong>My Problem</strong>: It returns <strong>404 page not found</strong> instead of the whoami-content as done by the HTTP endpoint.</p>
  
  <p>How do I enable <strong>HTTPS</strong> in Traefik v2 correctly?</p>
  
  <p>A full (not woring) MWE can be found here: <a href="https://github.com/boldt/traefik-v2-mwe/" rel="nofollow noreferrer">https://github.com/boldt/traefik-v2-mwe/</a></p>