Forum Discussion
Muhammad_Irfan1
Oct 21, 2014Cirrus
Proxypass in F5
Hey all the experts of F5, i am network guy please help me out and make an iRule for me and please don't direct me to some Apache proxy pass iRule link as its hard for me to change.
Actually i w...
- Oct 21, 2014
when HTTP_REQUEST { if {[HTTP::uri] starts_with "/test/"} { pool client_servers } else { pool default_pool } }
EDIT: I fixed the syntax error and added another : to HTTP::uri.
R_Eastman_13667
Oct 21, 2014Historic F5 Account
when HTTP_REQUEST {
if {[HTTP::uri] starts_with "/test/"} {
pool client_servers
}
else {
pool default_pool
}
}
EDIT: I fixed the syntax error and added another : to HTTP::uri.
- Muhammad_Irfan1Oct 22, 2014CirrusSir the iRule you post is not accepted by LTM, Can you please complete the iRule, the error generated is 01070151:3: Rule [/Common/proxypass1] error: /Common/proxypass1:2: error: [undefined procedure: HTTP:uri][HTTP:uri] and please modify it with multiple "if" statements. I have many conditions like if starts with /test/ then pool this and if starts with /test1/ then pool this...
- Muhammad_Irfan1Oct 22, 2014CirrusGot it the after HTTP double colon was need.
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