Forum Discussion
Merlin_kv_17750
Nimbostratus
Jun 17, 2015Redirect without path rewriting
Hello,
A company wants to use local link accessing public resource, but after redirect url path shouldn't change to external and stay local. Another words, it is possible dynamically rewrite pub...
- Jun 17, 2015
Yep, it can be done
when HTTP_REQUEST { if { ( [HTTP::host] == "fqdn.clientside.int" ) && ( [HTTP::path] == "/" ) }{ HTTP::host "www.foo.com" Rewrite the HTTP Host header value, before routing the request to a pool-member. HTTP::path "/blabla" Rewrite the request path (Use if path masking is needed). } }
Hannes_Rapp
Nimbostratus
Jun 17, 2015Yep, it can be done
when HTTP_REQUEST {
if { ( [HTTP::host] == "fqdn.clientside.int" ) && ( [HTTP::path] == "/" ) }{
HTTP::host "www.foo.com" Rewrite the HTTP Host header value, before routing the request to a pool-member.
HTTP::path "/blabla" Rewrite the request path (Use if path masking is needed).
}
}
Hannes_Rapp
Nimbostratus
Jun 17, 2015This solution is a feasible option if the public webside is an applet, or a HTML website with relative hyperlinks only. If it's a HTML website which includes full links (containing original Host value), it will not be enough.
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