Forum Discussion
TedSmith_143757
Nimbostratus
Apr 02, 2014Forward to VS based on URI? - firepass to APM migration
Hi, we are currently migrating from Firepass to APM, currently we have a load of URI's that people connect to on the firepass and get various policies applied and customisation depending on which one...
John_Alam_45640
Apr 02, 2014Historic F5 Account
Yes, we do that often.
Use the HTTP_REQUEST event on the front virtual server.
when HTTP_REQUEST {
switch -glob [HTTP::uri] {
"abc*" { virtual abc }
"def* { virtual def }
default { HTTP::respond 200 content "You are in the wrong place." }
}
}
HTH
TedSmith_143757
Nimbostratus
Apr 03, 2014John, I have got this to work, however it appears that when I connect to the virtual server with the APM access policy associated it changes to uri to be /my.policy and I get the 'you are in the wrong place message'
Any ideas?
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