HI friends,
I want to use NSX load balancer to proxy 2 domian servers of inside network and public them on one virtual server, then we could access the 2 servers with different domains name at the public to interface
F5 iRules could be easy to do this.
but I have done this as the chapter of Routing by domain name in Application Rule Examples there was some syntax errors of the NSX load balancer when add the application rules to the virtual server configuration.
could you give me some document about the syntax of the Application Rule.
Thank you:smileysilly:
The AppRule in the VMware documentation looks good to me.
I would need to see your AppRule and a trace from your browser on the http request you send to the Edge-VIP.
Note: Also validate your VIP is type HTTP and not TCP to be able to use the Application Rule.
Here is another example with comments that may help you:
# Check if host is "app1.xyz.com" (case insensitive)
acl host_app1 hdr(Host) -i app1.xyz.com
# Check if host is "app2.xyz.com" (case insensitive)
acl host_app2 hdr(Host) -i app2.xyz.com
# Check if host is "app3*" (case insensitive)
acl host_any_app3 hdr_beg(host) -i app3
# Use specific pool for each hostname
use_backend pool_app1 if host_app1
use_backend pool_app2 if host_app2
use_backend pool_app3 if host_any_app3
#for everything else, use the pool defined in the Virtual Server
Dimitri
hi there,
since Edge NLB is based on HAproxy you can get all you need to create an acl from this page:
HAProxy version 1.5.15 - Configuration Manual
hope this helps you as did for me.
regards