Forum Discussion
Sumit_Tyagi_121
Nimbostratus
Apr 07, 2013Need help on URL Redirection through possible irule
Please help in configuring my below requiremnt on F5 BIG-IP LTM 1600 ver11.3, as I have tried with some irules but no success
pool1_pool
Internal IP:port = 192.168.1.2:80 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test1/*
pool2_pool
Internal IP:port = 192.168.1.2:8086 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test2/*
pool3_pool
internal IP:port = 192.168.1.2:9000 redirection from external VIP/URI 172.21.111.3/https://myuri.com/test3/*
My one physical server running three webservers URI with seperate port defind above as internal IP & port so need to redirect the client SSL request to these three web with mappinp to myuri/test1, myuri/test2 & myuri/test3
Thanks for providing possible configuration & your expert comments
Regards,
Sumit
2 Replies
- Sumit_Tyagi_121
Nimbostratus
need your expert comment on below irule, can help in my requirement?
when HTTP_REQUEST {
log local0. "in HTTP_REQUEST"
if { [HTTP::uri] starts_with "/test2" } {
pool pool2_pool
}
elseif {[HTTP::host] starts_with "/test3"}{
pool pool3_pool}
else {
pool pool1_pool}
} - Jnon
Nimbostratus
You syntax looks right, are you seeing any errors in the LTM log? What do you have for pool members?
if pool1_pool is the same our could be set as your default pool on the vip, you could eliminate the else statement.
can you add a log statement after each pool selection so you can test your rule?
Are any of the cases working?
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