In some cenarios, you might want to convert your loadbalancer into a redirect engine. Some reasons for that are:
- Controlling http to https redirect
- During maintenance period you can redirect the website to another location during webserver down time.
- Migration cenarios.
The script to execute this is:
module ContentSwitchingModule 3
serverfarm MYFARM_80
nat server
no nat client
redirect-vserver MYFARM_RED
webhost relocation https://newsite.com
inservice
!
vserver MYFARM_80
virtual 10.1.1.140 tcp 80
serverfarm MYFARM_80
persistent rebalance
inservice
!
No comments:
Post a Comment