Forum Discussion
Lance_Simon_557
May 29, 2007Historic F5 Account
changing the url...do not want a redirect
I'm looking for a way to change a url that comes in from public ip addresses:
url that comes in from public goes is: http://123.abc.com
need it changed to: http://123ext.abc.com
...
Lance_Simon_557
May 29, 2007Historic F5 Account
Joe,
I appreciate you reply.
How would I combine two rules? I've got this one, that states which pool to go to if coming from the public side:
when HTTP_REQUEST {
if { [matchclass [IP::remote_addr] equals $::group_public_websites] } {
pool pool_public_websites
} else {
HTTP::redirect "http://www.abc.com/temp/outage.jsp/"
}
}
And yours:
when HTTP_REQUEST {
if { [HTTP::host] eq "123.abc.com" } {
HTTP::header replace "Host" 123ext.abc.com"
}
}
I'd like to know how you'd go about saying IF the request is coming from the public side AND if the host is 123.abc.com, go to this pool, else here...
Thanks again.
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