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

For examples of commonly used application rules, see Application Rule Examples.


  1. Log in to the vSphere Web Client.
  2. Click Networking & Security > NSX Edges.
  3. Double-click an NSX Edge.
  4. Click Manage > Load Balancer > Application Rules.
  5. Click Add.
  6. Enter the name and script for the rule.
  7. Click Add or OK.