Forum Discussion
F5Hopper_28651
Nimbostratus
Dec 17, 2012dev servers irule
hey guys,
not sure how to do this one, I have
dev01.www.etc.com, dev02.www.etc.com, through dev20.www.etc.com
I also have
dev01.app.etc.com through dev20.app.etc.com.
...
F5Hopper_28651
Nimbostratus
Dec 18, 2012Nice I tweeked it a bit, but the core was solid.
when HTTP_REQUEST {
if { ([string tolower [HTTP::host]] contains ".www." )
and ([string tolower [HTTP::uri]] eq "/webapiproduction/webservice.asmx") } {
set devserverid [findstr [HTTP::host] "dev" 0 "."]
HTTP::redirect "http://$devserverid.app.etc.com/webservice.asmx"
}
}
This works for all Dev01-20, listening for www and the /webapiproduction/webservice.asmx then sending them to dev01-20.app.etc.com/webservice.asmx
Thanks for all the help
Ryan
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects