Forum Discussion
Ian_Amos_37833
Nimbostratus
Aug 31, 2007URL rewrite..
Hello all,
here's what i'm trying to do:
There is a site with both internal and external URL's (INT dev.site.sub, EXT dev.site.net) where the external URL is fronted by an LTM. ...
Kirk_Bauer_1018
Nimbostratus
Aug 31, 2007ProxyPass as it is written today assumes the client will ask for a URL which we will then translate, not that a server will redirect to a name that needs to be translated (although that is something I may need to consider). Try this rule out:
when HTTP_RESPONSE {
if { [HTTP::header exists "Location"] } {
if { [HTTP::header] starts_with "http://dev.site.sub" } {
set remainder [substr [HTTP::header "Location"] 20]
HTTP::header replace "Location" "http://dev.site.net/$remainder"
}
}
}
Untested, but it should give you a place to start.
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
