Forum Discussion
url redirect
- Jul 10, 2023
Diago1111 I have come up with the following iRule which should do what you want. I have swapped "xyz" with "example.com" so in your scenario the redirect app pool server would send a redirect back to the client of "redirect.example.com" instead of "xyz-redirect" so that it appears as a full FQDN rather than a partial name. You can replace "example.com" with whatever you would like and the same goes for the URI path that you would like to match. Please keep in mind that this iRule assumes that the default pool associated to your virtual server would be the iflow server pool but if it isn't you would need to add an else action to send all other traffic to your iflow server pool.
when HTTP_REQUEST priority 500 { if { ([HTTP::host] == "example.com") && ([string tolower [HTTP::uri]] contains "/iflow/cx.exe/link") } { pool POOL_redirect_app } }
Hi Paulius
Below is traffic flow for Data center server:
•User click on the inflo link pattern https://xyz/iflow/cx.exe/link/xxxxxx
•F5 irule matches “https://xyz/iflow/cx.exe/link” and forward the request to redirect app server pool.
•Redirect-App check whether the document is in cloud or in iflow. If the document is in iflow the redirect app will send back redirected URL https://xyz-redirect/iflow/cx.exe/link/xxxxxx to F5 and F5 will forward it client.
•Client send redirected URL https://xyz-redirect/iflow/cx.exe/link/xxxxxx to F5 . New DNS entry should be created to point xyz-redirect to F5 iflow VIP IP. F5 find it is not matching irule so forward directly to iflow server pool and iflow app respond to user with the page
Below is traffic flow for cloud:
•User click on the inflo link pattern https://xyz/iflow/cx.exe/link/xxxxxx
•F5 irule matches “https://xyz/iflow/cx.exe/link” and forward the request to redirect app server pool.
•Redirect-App check whether the document is in cloud or in iflow. If the document is in cloud the app will send back redirected URL {{cloud url}} to F5 and F5 will forward it client.
•Client send traffic to cloud.
Diago1111 I have come up with the following iRule which should do what you want. I have swapped "xyz" with "example.com" so in your scenario the redirect app pool server would send a redirect back to the client of "redirect.example.com" instead of "xyz-redirect" so that it appears as a full FQDN rather than a partial name. You can replace "example.com" with whatever you would like and the same goes for the URI path that you would like to match. Please keep in mind that this iRule assumes that the default pool associated to your virtual server would be the iflow server pool but if it isn't you would need to add an else action to send all other traffic to your iflow server pool.
when HTTP_REQUEST priority 500 {
if { ([HTTP::host] == "example.com") && ([string tolower [HTTP::uri]] contains "/iflow/cx.exe/link") } {
pool POOL_redirect_app
}
}
- Diago1111Jul 10, 2023Altocumulus
Thanks Paulius I will test this.. return traffic from redirect app will go through F5 to client or it will send redirect url to client bypassinf F5? I assume this will go through F5...
- LiefZimmermanJul 14, 2023Admin
Diago1111,
If your issue was resolved please choose Accept As Solution on one (or more) replies.This helps other members find answers more quickly and confirms the efforts of those who helped.
Thanks for being part of our community.
Lief- Diago1111Jul 15, 2023Altocumulus
- LiefZimmerman
- I will confirm next week once I have applied config changes...please allow me sometime...
Recent Discussions
Related Content
* 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