# Global http to https redirect in v2

**URL:** <https://community.traefik.io/t/global-http-to-https-redirect-in-v2/1658>\
**Category:** Traefik v2\
**Tags:** file\
**Created:** [September 18, 2019, 6:01am UTC](https://community.traefik.io/t/global-http-to-https-redirect-in-v2/1658 "2019-09-18T06:01:39Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![simonszu](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/simonszu/32/708_2.png) [@simonszu](https://community.traefik.io/u/simonszu)\
**Post date:** [September 19, 2019, 11:33am UTC](https://community.traefik.io/t/global-http-to-https-redirect-in-v2/1658/2 "2019-09-19T11:33:25Z")

</div>

Have you been successful in setting this up?  
I think your catchall rule looks right, but the docs say: " You must attach a [service](https://docs.traefik.io/routing/services/) per router. Services are the target for the router." - however, a redirect from http to https in the documentation examples also has no service attached to the insecure router, so i am unsure.

My ultimate setup i am trying to achieve is a deployment via ansible, where i can have a boolean which indicates if traefik should act as an ssl terminator (with a catchall rule) and load balancer, or if it just should sit behind a different ssl terminator and just acts as a reverse proxy for the docker container (which includes no ssl at all).

---

_[View the full topic](https://community.traefik.io/t/global-http-to-https-redirect-in-v2/1658)._
