# Traefik displays 404 even on API & Dashboard

**URL:** <https://community.traefik.io/t/traefik-displays-404-even-on-api-dashboard/5668>\
**Category:** Traefik v2\
**Tags:** dashboard-api\
**Created:** [April 23, 2020, 9:18pm UTC](https://community.traefik.io/t/traefik-displays-404-even-on-api-dashboard/5668 "2020-04-23T21:18:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Aebian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/aebian/32/1957_2.png) [@Aebian](https://community.traefik.io/u/Aebian)\
**Post date:** [April 23, 2020, 9:18pm UTC](https://community.traefik.io/t/traefik-displays-404-even-on-api-dashboard/5668/1 "2020-04-23T21:18:38Z")

</div>

Hi,

I'm new to Traefik and currently trying to play around with it.  
Currently I have the issue that no matter what I try I can't get the dashboard to work.

> → /home/aurora-gw/app/traefik version  
> Version: 2.2.0  
> Codename: chevrotin  
> Go version: go1.14.1  
> Built: 2020-03-25T17:32:57Z  
> OS/Arch: linux/amd64

I start Traefik like so ` /home/aurora-gw/app/traefik --configFile=/home/aurora-gw/app/conf/config.toml`

my config.toml:

```defaultEntryPoints

[global]
  checkNewVersion = true
[log]
  level = "DEBUG"

[api]
  dashboard = true
  insecure = false

# Entrypoints definition
[entryPoints]
  [entryPoints.https]
    address = ":443"
    [entryPoints.https.forwardedHeaders]
      trustedIPs = ["127.0.0.1/32", "10.0.0.0/24"]
    [entryPoints.https.proxyProtocol]
      trustedIPs = ["127.0.0.1/32", "10.0.0.0/24"]

[providers.file]
 directory = "/home/aurora-gw/app/conf" 

```

My dynamic-config.toml:

```auto
[tls]
[tls.options]
  [tls.options.default]
    minVersion = "VersionTLS12"
  [tls.options.mintls13]
    minVersion = "VersionTLS13"
[[tls.certificates]]
  store = ["default"]
  certFile = "/home/aurora-gw/certs/aurora-gw.net.ki.crt"
  keyFile = "/home/aurora-gw/certs/aurora-gw.net.ki.pem"

[http.routers.the-api]
  rule = "Host(`aurora-gw.net.ki`)"
  entrypoints= ["https"]
  service = "api@internal"
  middlewares = ["auth"]

  [http.middlewares.auth.basicAuth]
  users = [
    "redacted:$redacted/",
]

```

However when trying to access the dashboard I get a 404 no matter what I try to change.  
I also read through the documentation but at this point I'm not sure what exactly the issue is.

The dynamic config is found as my SSL config gets applied without issues, so that works. Nothing else though.

Do you have any ideas what I did wrong?

---

<div class="post-metadata">

**Author:** ![ldez](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/ldez/32/5_2.png) [@ldez](https://community.traefik.io/u/ldez)\
**Post date:** [April 23, 2020, 11:57pm UTC](https://community.traefik.io/t/traefik-displays-404-even-on-api-dashboard/5668/2 "2020-04-23T23:57:30Z")

</div>

Hello,

you have to define the section section in the router configuration:

```auto
[http.routers.the-api]
  rule = "Host(`aurora-gw.net.ki`)"
  entrypoints= ["https"]
  service = "api@internal"
  middlewares = ["auth"]
  [http.routers.the-api.tls]

```

[https://docs.traefik.io/v2.2/routing/routers/#tls](https://docs.traefik.io/v2.2/routing/routers/#tls)

---

<div class="post-metadata">

**Author:** ![Aebian](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/aebian/32/1957_2.png) [@Aebian](https://community.traefik.io/u/Aebian)\
**Post date:** [April 24, 2020, 12:24am UTC](https://community.traefik.io/t/traefik-displays-404-even-on-api-dashboard/5668/3 "2020-04-24T00:24:23Z")

</div>

Wow, many thanks, that worked!
