Forum Discussion
WestonBlake_700
Nimbostratus
May 10, 2013Rewrite URL on Request, and then Rewrite URL on response
Hi All,
We have several country specific urls tied to the same VIP. Our sever is designed to accept connection on an internal url (internalurl.com for the example below) and produce cou...
WestonBlake_700
Nimbostratus
May 10, 2013Sorry in the request, so now it looks like this:
when HTTP_REQUEST {
set header2 [string tolower [HTTP::host]]
HTTP::header insert bla_site $header2
HTTP::header replace Host internalurl.com
switch -glob [string tolower [HTTP::uri]] {
default { DEFAULT_POOL
pool pool_Default
}
}
}
when HTTP_RESPONSE {
if { [HTTP::is_redirect] }{
HTTP::header replace Location [string map [ list internalurl.com $header2 ] [HTTP::header Location]]
set location $header2
}
}
Help 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