Forum Discussion
May 14, 2014
IRule for reverse proxy with http rewrite
Hi guys,
I need to use F5 like a reverse proxy. My company would like to have clients connect the our company URL and be redirected to an externally hosted website but have the traffic come bac...
May 30, 2014
When i type in my test URL, it is switching to the external address in the address bar.
I type:
http://www.opco.com/jobs/apply
The address bar switches to
http://www.newsite.com/mobileapply/opco
Here is the latest update:
The company wants the user to type:
http://www.opco.com/jobs/apply?postingid=1235213&vendorid=2214&return=https://m.xxxxx.com/Job-Search-Results.aspx?countryName=All&state=0&domain=&keyword=java
it should forward to:
http://www.newsite.com/mobileapply/opco? postingid=1235213&vendorid=2214&return=https://m.xxxxx.com/Job-Search-Results.aspx?countryName=All&state=0&domain=&keyword=java
The user never sees the new site address in the address bar.
This is the current irule that I have.
when CLIENT_ACCEPTED {
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch [string tolower [HTTP::uri]] {
"/jobs/apply" {
HTTP::uri "/mobileapply/opco"
pool newsite.com
}
"/jobs/apply/resume-thanks" {
HTTP::uri "/mobileapply/opco/thankyou"
pool newsite.com
}
"/jobs/privacy" {
HTTP::uri "/mobileapply/opco/privacy"
pool newsite.com
}
"/jobs/terms" {
HTTP::uri "/mobileapply/opco/terms"
pool newsite.com
}
default {
pool $default_pool
}
}
}
Also, if the user just types in http://www.opco.com it should go to our default pool called opco_pool. When i tried to add that to the rule, it kept failing. Should i put the default pool name in this line:
set default_pool [LB::opco_pool]
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
