# Traefik returns me a 404 with HTTPS

**URL:** <https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454>\
**Category:** Traefik v2\
**Tags:** file, cli, dashboard-api, docker\
**Created:** [May 12, 2022, 7:57pm UTC](https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454 "2022-05-12T19:57:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Crazyweedz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/crazyweedz/32/5331_2.png) [@Crazyweedz](https://community.traefik.io/u/Crazyweedz)\
**Post date:** [May 12, 2022, 7:57pm UTC](https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454/1 "2022-05-12T19:57:08Z")

</div>

Hello everyone !

I am discovering Traefik and I am currently testing it. I use the documentation for this. but I am faced with a small problem.

I'm using a dedicated server that has Debian 11 installed and docker only.

My issue is the following :

With the CLI configuration everything works fine. I can access [whoami.example.com](http://whoami.example.com) with no problem.

But when I want to use a configuration file (traefik.yml) the address [whoami.example.com](http://whoami.example.com) returns me a 404 not found.

_ **This works -\>** _  
(found here: [Traefik Docker HTTP Challenge Documentation - Traefik](https://doc.traefik.io/traefik/user-guides/docker-compose/acme-http/))

> **docker-compose.yml**
>
> ```auto
> version: "3.3"
> 
> services:
> 
> traefik:
> image: "traefik:v2.6"
> container_name: "traefik"
> command:
> #- "--log.level=DEBUG"
> - "--api.insecure=true"
> - "--providers.docker=true"
> - "--providers.docker.exposedbydefault=false"
> - "--entrypoints.web.address=:80"
> - "--entrypoints.websecure.address=:443"
> - "--certificatesresolvers.myresolver.acme.httpchallenge=true"
> - "--certificatesresolvers.myresolver.acme.httpchallenge.entrypoint=web"
> #- "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"
> - "--certificatesresolvers.myresolver.acme.email=postmaster@example.com"
> - "--certificatesresolvers.myresolver.acme.storage=/letsencrypt/acme.json"
> ports:
> - "80:80"
> - "443:443"
> - "8080:8080"
> volumes:
> - "./letsencrypt:/letsencrypt"
> - "/var/run/docker.sock:/var/run/docker.sock:ro"
> 
> whoami:
> image: "traefik/whoami"
> container_name: "simple-service"
> labels:
> - "traefik.enable=true"
> - "traefik.http.routers.whoami.rule=Host(`whoami.example.com`)"
> - "traefik.http.routers.whoami.entrypoints=websecure"
> - "traefik.http.routers.whoami.tls.certresolver=myresolver"
> 
> ```

**However, this does not work -\>**

> **docker-compose.yml**
>
> ```auto
> version: "3.3"
> 
> services:
> 
> traefik:
> image: "traefik:v2.6"
> container_name: "traefik"
> restart: unless-stopped
> ports:
> # The HTTP port
> - "80:80"
> # The Web UI (enabled by --api.insecure=true)
> - "8080:8080"
> - "443:443"
> volumes:
> - "./letsencrypt:/letsencrypt"
> - "/home/my-user/apps/traefik/traefik.yml:/traefik.yml"
> - "/var/run/docker.sock:/var/run/docker.sock:ro"
> 
> whoami:
> image: "traefik/whoami"
> container_name: "simple-service"
> labels:
> - "traefik.enable=true"
> - "traefik.http.routers.whoami.rule=Host(`whoami.example.com`)"
> - "traefik.http.routers.whoami.entrypoints=websecure"
> - "traefik.http.routers.whoami.tls.certresolver=myresolver"
> 
> ```

> **traefik.yml**
>
> ```auto
> api:
> insecure: true
> 
> prodivers:
> docker:
> endpoint: "unix:///var/run/docker.sock"
> exposedByDefault: false
> 
> entryPoints:
> web:
> address: ":80"
> 
> websecure:
> address: ":443"    
> 
> certificatesResolvers:
> myresolver:
> acme:
> email: postmaster@example.com
> storage: /letsencrypt/acme.json
> httpChallenge:
> # used during the challenge
> entryPoint: web
> 
> ```

I don't understand what's wrong with my setup.  
I think I need help figuring out what I did wrong.

Thank you

---

<div class="post-metadata">

**Author:** ![tommoulard](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/tommoulard/32/2997_2.png) [@tommoulard](https://community.traefik.io/u/tommoulard)\
**Post date:** [May 13, 2022, 7:32am UTC](https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454/2 "2022-05-13T07:32:47Z")

</div>

Hello @Crazyweedz,

You made a typo there:

> [@Crazyweedz](#):
>
> ```auto
> prodivers:
> 
> ```

It should be `providers`.

With this typo fixed like that, it should work as intended 😃

---

<div class="post-metadata">

**Author:** ![Crazyweedz](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/crazyweedz/32/5331_2.png) [@Crazyweedz](https://community.traefik.io/u/Crazyweedz)\
**Post date:** [May 13, 2022, 8:25am UTC](https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454/3 "2022-05-13T08:25:56Z")

</div>

Thank you @tommoulard !

It works perfectly now. I don't understand how I missed such a silly mistake. 🤦🏻‍♂️ 😅

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/bd81ebdb578656e76e56ff3cc3eed021d3ba132d.png) [@system](https://community.traefik.io/u/system)\
**Post date:** [May 16, 2022, 8:26am UTC](https://community.traefik.io/t/traefik-returns-me-a-404-with-https/14454/4 "2022-05-16T08:26:51Z")

</div>

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
