Supporting two services on same VIP and Host Port

Hello,

I have a server running two web based services, both on port 443. I’m using host headers to differentiate between the two.

We have a need to add a second server for redundancy purposes. I’m curious which of the following (or some other I’m not thinking of?) method would be better:

A) Have both URLs go to one A10 VIP and use aFlex to re-write the outbound host headers such that the correct service is returned by the server

B) Change the existing applications to use two separate ports.
Thanks in advance,

Justin

Hi Justin,

My suggestion would be option C). Use an HTTP Template with App Switching to point different host headers to different service-groups. Config Mode → Service → Template → HTTP → App Switching. On the CLI it would look something like:

slb template http tp-example host-switching ends-with domain1.tld service-group sg-group1-443 host-switching ends-with domain2.tld service-group sg-group2-443 !