# Traefik monitor to accept http and redirect to https?

**URL:** <https://community.traefik.io/t/traefik-monitor-to-accept-http-and-redirect-to-https/4695>\
**Category:** Traefik v2\
**Tags:** docker, letsencrypt-acme\
**Created:** [March 1, 2020, 10:47am UTC](https://community.traefik.io/t/traefik-monitor-to-accept-http-and-redirect-to-https/4695 "2020-03-01T10:47:21Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iangregsondev](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/iangregsondev/32/1670_2.png) [@iangregsondev](https://community.traefik.io/u/iangregsondev)\
**Post date:** [March 1, 2020, 10:47am UTC](https://community.traefik.io/t/traefik-monitor-to-accept-http-and-redirect-to-https/4695/1 "2020-03-01T10:47:21Z")

</div>

Hi,

I wonder if anyone can help ?

I have traefik monitor setup with https and and auth middleware - all seems to be fine. Although i am forced to go to the https address, if i go to the http address it gives me 404.

I added a redirect but i must be doing something wrong ? These are all added with docker labels

```
labels:
  - "traefik.enable=true"
  - "traefik.http.routers.traefik.service=api@internal"
  - "traefik.http.routers.traefik.tls.certresolver=le"
  - "traefik.http.routers.traefik.entrypoints=web,websecure"
  - "traefik.http.routers.traefik.middlewares=traefik-auth,traefik-redirect"
  - "traefik.http.middlewares.traefik-redirect.redirectscheme.scheme=https"
  - "traefik.http.middlewares.traefik-redirect.redirectscheme.permanent=true"

```

starting traefik i pass the following

```
  "--entryPoints.web.address=:80",
  "--entryPoints.websecure.address=:443",

```

Anybody know whats going on ? Its obviously me but I am not sure what I am doing wrong.

Basically I want to ensure the https works ( and it does) and anybody trying to access http would be forced redirected to the https address.

Thanks in advance

---

<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:** [March 1, 2020, 10:56am UTC](https://community.traefik.io/t/traefik-monitor-to-accept-http-and-redirect-to-https/4695/2 "2020-03-01T10:56:02Z")

</div>

Hello,

Recommend read:

- [https://blog.containo.us/traefik-2-0-docker-101-fc2893944b9d](https://blog.containo.us/traefik-2-0-docker-101-fc2893944b9d)
- [https://github.com/containous/blog-posts/tree/master/2019\_09\_10-101\_docker](https://github.com/containous/blog-posts/tree/master/2019_09_10-101_docker)
- [https://docs.traefik.io/v2.1/migration/v1-to-v2/#http-to-https-redirection-is-now-configured-on-routers](https://docs.traefik.io/v2.1/migration/v1-to-v2/#http-to-https-redirection-is-now-configured-on-routers)
- the forum.

---

<div class="post-metadata">

**Author:** ![iangregsondev](https://sea2.discourse-cdn.com/flex020/user_avatar/community.traefik.io/iangregsondev/32/1670_2.png) [@iangregsondev](https://community.traefik.io/u/iangregsondev)\
**Post date:** [March 1, 2020, 11:47am UTC](https://community.traefik.io/t/traefik-monitor-to-accept-http-and-redirect-to-https/4695/3 "2020-03-01T11:47:51Z")

</div>

Thank you, its now working.
