You can write virtual server-side application rules by using the HAProxy syntax to manipulate and manage application traffic.
NSX Data Center supports only virtual server-side application rules. NSX load balancer internally uses HAProxy. It means that application rules that you add on the virtual server are internally inserted in that virtual server's "frontend" section of the HAProxy configuration file. Pool-side application rules (HAProxy "backend" section) are not supported.
For information about the application rule syntax, see the HAProxy documentation at http://cbonte.github.io/haproxy-dconv/
For examples of commonly used application rules, see Application Rule Examples.
Procedure
- Log in to the vSphere Web Client.
- Click .
- Double-click an NSX Edge.
- Click .
- Click Add.
- Enter the name and script for the rule.
- Click Add or OK.