On the navigation pane, from LOAD BALANCING, choose Load Balancers.
Select your load balancer and choose the Listenerstab.
Choose View/edit rules.
Choose Add rules(the plus sign) in the menu bar. This action allows you to add Insert Ruleicons at every location where you can insert a rule in the priority order.
Define the rule as follows:
Choose Insert Rule.
(Optional) To configure host-based routing, choose Add condition, Host is. Enter the hostname (for example, *.example.com), and then choose the check mark.
(Optional) To configure path-based routing, choose Add condition, Path is. Enter the path pattern (for example, /img/*), and then choose the check mark.
To add a fixed-response action, choose Add action, Return fixed response. Enter a response code and optional response body, and then choose the check mark.
(Optional) To change the order of the rule, use the arrows. The default rule always has the last priority.