Forum Discussion
hc_andy_35682
Feb 23, 2012Nimbostratus
URI Question when going from External LB to Internal LB
Hi There...
We have a requirement to use Port 443 to load balance a new application and redirect the requests to the appropriate pool based on URI entered.
This is a two tier model with an external/public load balancer and internal load balancer.
My traffic flow looks like this:
Internet --> Ext LB:203.12.195.x:443 --reverse proxy--> Int LB:10.61.35.x:80 --> select appropriate pool to use based on URI.
- Users type in https://main.abc.com.
- Then get redirected to https://login.main.com.au to login (node listens on TCP 8001).
- After successful login, they goto https://report.main.com.au (node listens on TCP 8080).
The abc domains all share the same public IP (203.12.195.x) and get reverse proxied to the internal VIP (10.61.35.x).
My question is, will the contents of the URI carry over from the external LB to the internal LB so that I can use an iRule to select the appropriate pool (see below)??? Or do I need to do something else to make this work?
when HTTP_REQUEST {
Redirect to specific pool based on URI requested
switch -glob [HTTP::host] {
"main.abc.com" {
pool main_tcp_80
}
"report.main.abc.com" {
pool report_tcp_8080
}
"login.main.abc.com" {
pool login_tcp_8001
}
}
}
Thanks.
Andy
- nitassEmployeeMy question is, will the contents of the URI carry over from the external LB to the internal LB so that I can use an iRule to select the appropriate pool (see below)???doesn't it depend on how reverse proxy works? anyway, i think it will but it might not be exact same as user's request. just my thoughts.
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