# Endless 502 / forwarding when calling dashboard via subdomain #6123

**URL:** <https://community.traefik.io/t/endless-502-forwarding-when-calling-dashboard-via-subdomain-6123/3689>\
**Category:** Traefik v2\
**Tags:** dashboard-api, docker\
**Created:** [January 2, 2020, 11:19pm UTC](https://community.traefik.io/t/endless-502-forwarding-when-calling-dashboard-via-subdomain-6123/3689 "2020-01-02T23:19:13Z")\
**Posts on this page:** 1\
**Showing post:** 5

<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:** [January 3, 2020, 10:44pm UTC](https://community.traefik.io/t/endless-502-forwarding-when-calling-dashboard-via-subdomain-6123/3689/5 "2020-01-03T22:44:57Z")

</div>

Could you clean your configuration (remove all commented parts), it's pretty hard to read.

* * *

I repeat: I strongly recommend to use the secure mode for routing, the insecure mode is not made to do routing.

To understand the concept:

 ![traefik-api_dashboard-internal_provider_1](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/b3b036b57ff7eb1999fc8ef625fd44ab46bcb82b.png)

 ![traefik-api_dashboard-internal_provider](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/5/5e295687e30a2021df8e7e2aba21269b1c09dc63.png)

The infinite loop (/dashboard/dashboard/...):

 ![Traefik dashboard infinite loop](https://us1.discourse-cdn.com/flex020/uploads/containo/original/2X/b/b07568e07484025a539656aae5395ae32a2c3a4b.png)

If you use the api@internal the infinite loop will disappear.

---

_[View the full topic](https://community.traefik.io/t/endless-502-forwarding-when-calling-dashboard-via-subdomain-6123/3689)._
