# No "404" on https port when using http

**URL:** <https://community.traefik.io/t/no-404-on-https-port-when-using-http/6399>\
**Category:** Traefik v2\
**Tags:** file\
**Created:** [June 6, 2020, 9:32am UTC](https://community.traefik.io/t/no-404-on-https-port-when-using-http/6399 "2020-06-06T09:32:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![flypenguin](https://avatars.discourse-cdn.com/v4/letter/f/e480ec/32.png) [@flypenguin](https://community.traefik.io/u/flypenguin)\
**Post date:** [June 6, 2020, 9:32am UTC](https://community.traefik.io/t/no-404-on-https-port-when-using-http/6399/1 "2020-06-06T09:32:20Z")

</div>

I have a configuration (included below) which redirects from http to https. unfortunately when i connect the httpS port using http, i get a "404" in return. other web servers tell me "you used http on a https port", which is far more helpful.

would that be possible?

minimal configuration here:

```auto
# dynamic config
[http.routers]
  [http.routers.secure-traffic]
    entryPoints = ["websecure"]
    service = "backend"
    rule = "PathPrefix(`/`)"

  [http.routers.secure-traffic.tls]

[http.services]
  [http.services.backend.loadBalancer]
    [[http.services.backend.loadBalancer.servers]]
      url = "http://localhost:18080"

[tls.stores.default.defaultCertificate]
  certFile = "./cert.pem"
  keyFile = "./cert.key"

```

and here:

```auto
# static config
[entryPoints.web]
  address = ":8080"

  [entryPoints.web.http.redirections.entryPoint]
    to = "websecure"
    scheme = "https"

[entryPoints.websecure]
  address = ":8443"

[providers]
  [providers.file]
    filename = "traefik-dynamic.toml"

```
