title: Traefik - cannot show dashboard
body: <p>Treafik redirecting works like charm!</p>
  <p>How can I configure the <strong>Traefik dashboard</strong> to be shown?</p>
  <p>I have an &quot;A&quot;-record pointing to my domain and a CNAME record &quot;monitor&quot; pointing to the same domain. <strong>Is this correct?</strong></p>
  <p>My first attempt was this <code>docker-compose.yml file</code>. It contains also a Spring Boot application listening at 8080:</p>
  <pre class="lang-yaml prettyprint-override"><code>version: '3'
  services:
    traefik:
      image: traefik:latest
      container_name: traefik
      command: --api --docker
      restart: always
      networks:
        - geosolutionsnet
      volumes:
        - /var/run/docker.sock:/var/run/docker.sock
        - /home/ec2-user/traefik/traefik.toml:/traefik.toml
        - /home/ec2-user/traefik/acme.json:/acme.json
      ports:
        - &quot;80:80&quot;
        - &quot;443:443&quot;
      labels:
        - &quot;traefik.docker.network=geosolutionsnet&quot;
        - &quot;traefik.enable=true&quot;
        - &quot;traefik.frontend.rule=Host:monitor.xyz.nl&quot;
        - &quot;traefik.port=8080&quot;
        - &quot;traefik.protocol=http&quot;
        #- &quot;traefik.frontend.headers.STSSeconds=15768000&quot;
  </code></pre>
  <p>With the browser I pointed to 'monitor.xyz.nl' but I got a 404.</p>
  <p>My second try was with:</p>
  <pre class="lang-yaml prettyprint-override"><code>      - &quot;traefik.frontend.rule=Host:xyz.nl;Path:/monitor&quot;
  </code></pre>
  <p>Pointing my browser to xyz.nl/monitor ... gave again a 404.</p>
  <p>My <code>traefik.toml</code> file is:</p>
  <pre class="lang-toml prettyprint-override"><code>defaultEntryPoints = [&quot;http&quot;, &quot;https&quot;]
  [entryPoints]
    [entryPoints.http]
    address = &quot;:80&quot;
    [entryPoints.http.redirect]
      entryPoint = &quot;https&quot;
    [entryPoints.https]
      address = &quot;:443&quot;
      [entryPoints.https.tls]
      
  [docker]
    endpoint = &quot;unix:///var/run/docker.sock&quot;
    domain = &quot;xyz.nl&quot;
    watch = true
    exposedByDefault = false
    
  [acme]
    email = &quot;jj@xyz.nl&quot;
    storage = &quot;acme.json&quot;
    onHostRule = true
    entryPoint = &quot;https&quot;
    onDemand = false
    [acme.tlsChallenge]
  </code></pre>
  <p><strong>UPDATE</strong>:
  Using the CNAME <code>traefik</code> that is mapped to domain <code>xyz.nl/traefik</code> results in a 404 error.</p>
  <p>Using the CNAME 'monitor' pointing to the (A-record) domain I get the same result. I think that is normal because I configured the host match via a pathprefix.</p>