Hello All.
I need help with URL redirection in traefik 2.2..
http test.example.me/ redirected to https test.example.me
I have test.example.me redirected to docker service port 10080.
need redirect permanently test.example.me/docs/ to docker service port 20080
can somebody help me ? I search in internet for solution but not find yet.
here is yml file
http:
routers:
test_example-http:
rule: "Host(test.example.me`)"
entryPoints:
- web
# service: test_example_me
middlewares:
- test_example-redirect
test_example-https:
rule: "Host(`test.example.me`)"
entryPoints:
- websecure
service: test_example_me
tls:
certResolver: le
services:
test_example_me:
loadBalancer:
servers:
- url: "http://10.0.10.233:10080"
test_example_me_docs:
loadBalancer:
servers:
- url: "http://10.0.10.192:20080"
middlewares:
test_example-redirect:
redirectScheme:
scheme: https