# SOLVED - Router for whoami works but non others do

**URL:** <https://community.traefik.io/t/solved-router-for-whoami-works-but-non-others-do/13974>\
**Category:** Traefik v2\
**Tags:** docker\
**Created:** [March 30, 2022, 3:01pm UTC](https://community.traefik.io/t/solved-router-for-whoami-works-but-non-others-do/13974 "2022-03-30T15:01:41Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![uinguzero](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/uinguzero/32/5158_2.png) [@uinguzero](https://community.traefik.io/u/uinguzero)\
**Post date:** [March 30, 2022, 3:01pm UTC](https://community.traefik.io/t/solved-router-for-whoami-works-but-non-others-do/13974/1 "2022-03-30T15:01:41Z")

</div>

so i was having some issues getting traefik to work. short summarize on of what i already did  
i created a dns reroute in my adguard home so that srv.local points to my server ip  
then i created a docker-compose and traefik.yml file for traefik and a seperate docker-compose for whoami

traefik docker: [version: '3.7'networks: traefik: external: trueservices: - Pastebin.com](https://pastebin.com/R9CR7aAw)  
traefik.yml: https ://pastebin.com/kaEpkQSM

so when i browse to http ://srv.local/whoami  
It works - I can see the output of the whoami program

however, when i try any other router i created like http ://srv.local/traefik or http ://srv.local/dozzle or http ://srv.local/helloworld or http ://srv.local/changedetection or http ://srv/local/paperlessng

it doesnt work.

for dozzle i get just a blank page (no error or whatsoever)

for changedetection i get: Not Found  
The requested URL was not found on the server. If you entered the URL manually please check your spelling and try again.

for traefik i get 404 page not found

for hellowolrd i get 404 Not Found - nginx/1.21.6

for paperless when i go to http ://srv.local/paperless it changes the url to  
http ://srv.local/accounts/login/?next=/paperlessng  
BUT i still get 404 page not found

while for instance in the changedetection logging of the docker i can see my connection incoming:  
(192.168.18.99 = my laptops ip)

```auto

* today at 2:38:03 PMWatching: ff026c6f-2e2c-42de-8ba9-6667b8225d57 http ://www.quotationspage.com/random.php
* today at 2:38:03 PMWatching: b563c18c-d70c-45c1-a7f6-42c36f0c4660 https ://news.ycombinator.com/
* today at 2:38:03 PMWatching: b96c79c9-d987-4b15-9488-1fbcc5ba2eb9 https ://www.gov.uk/coronavirus
* today at 2:38:03 PMWatching: be679108-7b32-49ae-a289-2a1b05baf747 https ://changedetection.io/CHANGELOG.txt
* today at 2:38:03 PM(1) wsgi starting up on http ://0.0.0.0:5000
* today at 2:39:55 PM(1) accepted ('172.25.0.3', 53240)
* today at 2:39:55 PM192.168.18.99,172.25.0.3 - - [30/Mar/2022 12:39:55] "GET /changedetection HTTP/1.1" 404 356 0.002328
* today at 2:39:57 PM192.168.18.99,172.25.0.3 - - [30/Mar/2022 12:39:57] "GET /changedetection HTTP/1.1" 404 356 0.001652
* today at 2:39:58 PM192.168.18.99,172.25.0.3 - - [30/Mar/2022 12:39:58] "GET /changedetection HTTP/1.1" 404 356 0.002220
* today at 2:39:58 PM192.168.18.99,172.25.0.3 - - [30/Mar/2022 12:39:58] "GET /changedetection HTTP/1.1" 404 356 0.001653
* today at 2:39:58 PM192.168.18.99,172.25.0.3 - - [30/Mar/2022 12:39:58] "GET /changedetection HTTP/1.1" 404 356 0.001727

```

so if i look at the differences in docker files

the one that works  
whoami docker: [version: '3.7'networks: traefik: external: trueservices: - Pastebin.com](https://pastebin.com/negyyipe)

the ones that don't work  
changedetection: [version: '3.7'networks: traefik: external: trueservices: - Pastebin.com](https://pastebin.com/p2KrnnzQ)  
helloworld: [version: '3.7'networks: traefik: external: trueservices: - Pastebin.com](https://pastebin.com/APUvgdMz)

what am i doing wrong here?  
I can see al these routers in my traefik dashboard, and with the correct port.....

what am i missing ?  
\*\*\* for some links i deliberately added a space in between, since new users can only post 4 links ...

======================================================================  
SOLVED-----------------------------------------------------------------------------------------------------------------

my mistake was using pathprefix for defaultrule.  
i change the defaultrule to

```auto
defaultRule: "Host(`{{ index .Labels `com.docker.compose.service` }}.srv.local`)"

```

and now i can just go to traefik.srv.local or dozzle.srv.local and everything works

---

<div class="post-metadata">

**Author:** ![cakiwi](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/cakiwi/32/3205_2.png) [@cakiwi](https://community.traefik.io/u/cakiwi)\
**Post date:** [March 31, 2022, 2:26pm UTC](https://community.traefik.io/t/solved-router-for-whoami-works-but-non-others-do/13974/2 "2022-03-31T14:26:42Z")

</div>


