My situation
subdomain.example.com —> service1
subdomain.example.com/path/* --> service2
subdomain.example.com/.well-known/* —> service3
in the load balancer whatever I do it end up in service1 I put the rule at the top
port_rules:
- hostname: subdomain.example.com
path: /test/*
priority: 1
protocol: http
service: nginxtest
source_port: 80
target_port: 80
port_rules: - hostname: subdomain.example.com
path: /.well-known/*
priority: 2
protocol: http
service: letsencrypt-nginx
source_port: 80
target_port: 80
in both case I’m able to curl the container from haproxy
curl 10.42.6.201
<!DOCTYPE html>
<html>
<head>
<title>Welcome to nginx!</title>
what am I doing wrong ?