Forum Discussion
BKA_201457
Nimbostratus
Feb 10, 2016Apache 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
Feb 10, 2016I'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 ?
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
