Forum Discussion
plavender_72604
Nimbostratus
May 12, 2010URL rewrites for multiple domains
Hopefully someone can help me out here, scripting is not my strong point and each time I try to search this forum I get an error :-(
I would like to set up the F5 so that multiple sub domain...
plavender_72604
Nimbostratus
May 13, 2010Hey All,
I've had a go at trying to put something together, could someone just give it a sanity check?
when HTTP_REQUEST {
Check host/uri (set to lowercase) switch "[string tolower [HTTP::host]]" {
"aaa.domain.com" {
Rewrite host/URI
HTTP::header replace Host "domain.com"
HTTP::uri "/aaa"
pool aaa_pool
}
"bbb.domain.com" {
Rewrite host/URI
HTTP::header replace Host "domain.com"
HTTP::uri "/bbb"
pool bbb_pool
}
}
}
Thanks again!
PeterHelp guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
