'Traefik routing to wrong location
I have the following URLS:
o.example.com j.example.com
The idea is, o routes to App1 and j.example.com routes to App2, both have ALB with SSL already setup, so using SSL passthrough
Unfortunately.. when I'm going to o.example.com, its showing j.example.com
My configs in traefik look as following
# traefik.yml
api:
insecure: true
entryPoints:
web:
address: :80
http:
redirections:
entryPoint:
to: web-secure
scheme: https
web-secure:
address: :443
providers:
file:
filename: "/etc/traefik/config.yml"
watch: true
# config.yml
tcp:
routers:
oapp:
rule: "HostSNI(`o.example.com`)"
service: oservice
tls:
passthrough: true
japp:
rule: "HostSNI(`j.example.com`)"
service: jservice
tls:
passthrough: true
services:
oservice:
loadBalancer:
servers:
- address: internal-server-app1.us-east-1.elb.amazonaws.com:443
jservice:
loadBalancer:
servers:
- address: internal-server.app2.us-east-1.elb.amazonaws.com:443
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
