Forum Discussion
Brett__01_13258
Nimbostratus
Oct 14, 2013irule redirect and masking
Hi Im having trouble with an irule I hope you can help.
Im trying to have request that goes to host with /external* redirects to another site but the rul is masked with original request
A ...
Kevin_Stewart
Employee
Oct 16, 2013A redirect to "http://extranet.site.com.au" will cause the browser to show that address. If you want to keep the browser on "https://Mainsiteurl.site.com.au", then your first iRule code was probably more appropriate. That is, instead of physically redirecting the user to another host, you must send the traffic through the Mainsite VIP.
when HTTP_REQUEST {
if { [string tolower [HTTP::uri]] starts_with "/extranet" } {
HTTP::uri "/[string range [HTTP::uri] 9 end]"
HTTP::header replace Host "extranet.site.com.au"
pool extranet_pool
SSL::disable serverside
}
} The above assumes that the Extranet service is in a different pool of servers than your regular traffic, and that your regular pool of servers are listening on SSL.
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