Forum Discussion
BKA_201457
Nimbostratus
10 years agoApache Reverse Proxy migration to F5.
Hello all. I would really appreciate some help with this. I am trying to migrate an Apache config to a F5 LTM LB. I understand rewrites, but this one has me baffled. I have tried a few different ...
IanB
Employee
10 years agoI'm not quite sure what your question is - are you asking for help understanding what your current RewriteRule does (it seems to rewrite "/" to "/ptg/rm"), or are you asking how to implement the same rule in an iRule (or ltm policy), or is the question something else ?
If you were to use a policy, it would be something like this:
ltm policy rewriteurls {
requires { http }
rules {
rewrite_root {
actions {
0 {
http-uri
replace
path /ptg/rm
}
}
conditions {
0 {
http-uri
path
values { / }
}
}
ordinal 1
}
}
strategy first-match
}
Does that help ?