Hi All,
I am using haproxy to route the traffic. I added a custom domain on website with name webflow.example.com
and route its content to my main domain example.com
using haproxy.
Now example.com
can server content on / from webflow.example.com
. Now i want when i hit example.com/admin
it should server data from other backend mentioned in haproxy.
But it is giving me 503 service unavailable for example.com/admin
Here is my haproxy config file
acl is_admin path_beg /admin
use_backend admin_backend if is_admin
default_backend publicwebflow
backend publicwebflow
http-request set-header Host webflow.example.com
server webflow webflow.example.com:443 ssl verify none sni str(webflow.example.com) ssl-min-ver TLSv1.2
backend admin_backend
http-request set-header Host example.com
server admin 10.1.0.12:8625 ssl verify none ssl-min-ver TLSv1.2