Forum Discussion
Dawn_Hughes_208
Mar 23, 2012Nimbostratus
URI rewrite and pool with port redirection
I am really new to iRules and am hoping you experts can assist. We have a URL http://myurl that needs to go to two load-balanced packend URLs on different ports:
https://server1:8443/path/newuri?NAME=Item
https://server2:8443/path/newuri?NAME=Item
I first tried adding a pool with the two hosts and new ports, then tried writing a simple iRule with a uri rewrite to append the info on the end. When I check the local logs, I can see that it did the rewrite, but either it ignored the pool, or is not passing th euri to the pool members, because it is not working. I have tried removing the pool and trying to do both the uri rewrite and then select the pool on the iRule, but it does not like that either.
Does anyone have any suggestions on how I can accomplish this? Help would be most greatly appreciated
- Ryan_Paras_7933NimbostratusA number of questions....
- Dawn_Hughes_208NimbostratusThat would not work. It would need to be redirected to https://myurl:8443/a/b/c, but then that URL would need to be load-balanced between two backend servers. Those backend servers are expecting the exact URLs as listed. They will not listed on just port 443, and they will not respond unless the entire /a/b/c uri is passed.
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