Hi, Im using Traefik as reverse proxy for my project. I have to route some of my requests to remote server which allows only HTTPS connection.
In version v1 i had my file like below and it worked.
defaultEntryPoints = ["http"]
logLevel = "INFO"
insecureSkipVerify = true
[entryPoints]
[entryPoints.http]
address = ":4001"
[file]
[backends]
[backends.my-service]
[backends.my-service.servers.server1]
url = "https://<MY-DOMAIN>"
[frontends]
[frontends.my-service]
backend = "my-service."
passHostHeader = false
[frontends.my-service.routes.route1]
rule = "PathPrefix: /api"
After migration to v2 i have:
[log]
level = "DEBUG"
[entryPoints]
[entryPoints.web]
address = ":4001"
[serversTransport]
insecureSkipVerify = true
[providers.file]
filename = "/etc/traefik/traefik.toml"
[http]
# Routers definitions
[http.routers]
[http.routers.my-service]
rule = "PathPrefix(`/api`)"
service = "my-service"
[http.services]
[[http.services.my-service.loadBalancer.servers]]
url = "https://<MY-DOMAIN>"
passHostHeader = false
scheme = "https"
Now after accessing localhost:4001/api/something
I get 404 page not found
.
Im using Traefik in version v2.2.11
Can anyone help me with this problem?