Service Redirection in Pound LoadBalancer
Service Redirection in Pound:
1. Edit the Configuration file /etc/pound2/pound2.cfg.
2. Create a new Service Definition.
Service "shopping_Redirection"
URL ".*"
HeadRequire "Host: (shopping\.example\.com)"
Redirect "https://beauty.example.com/shopping/Login.aspx"
End
Service "shopping_1_Redirection"
URL ".*"
HeadRequire "Host: (shopping\.example\.co\.in)"
Redirect "https://in-shopping.example.com/shopping/Login.aspx"
End
3. Check the Pound Configuration.
pound2 -c -f /etc/pound2/pound2.cfg
4. Reload Pound Service.
/etc/init.d/pound2 reload
No comments