Maybe someone can help me. I try to redirect all requests from http to https
hier is my config:
## Dynamic configuration
- url: "http://localhost:8082"
browsing the URL results in a
404 Not Found
there is an example that use redirect here:
I created a simple working example (no swarm, no let's encrypt, no file): version: "3" services: traefik: image: traefik:v2.0.0 ports: - "80:80" - "443:443" command: - --global.checkNewVersion=true -...
It's docker but can be translated to a file.
Yours does not look like it's going to work because it creates a tls router but does not create a non-tls one, thus it cannot match on a plain http request. When that's fixed, there could be further impediments depending on the fix.
hmm I followed the docs here:
This states, that I need one router, accepting the two entrypoints for http/https?
You need two routers. While one router can accept requests from multiple entry points, as the doco says, it cannot accept both http and https at the same time.
fixed. the marked answer was the solution