Forum Discussion
Redirect between HTTPS VirtualServers
Hello,
I want to redirect the trafict of a HTTPS VS1 to HTTPS VS2 for a specific URI (FACT). I have implement this iRule:
when HTTP_REQUEST { set url [HTTP::header Host][HTTP::uri] set uri [HTTP::uri] if { [HTTP::uri] starts_with "/FACT"} { snat automap virtual VS2_https
}
else {
pool pool_servers1 } }
The same irule in HTTP to HTTP works fine, and from HTTPS V1 to HTTP V2 as well. Both virtual servers are configured with the same client SSL certificate. Do you have any idea to explain why this configuration does not work?
- Jeff_Maddox_394Historic F5 Account
You need to do a HTTP::redirect, not a virtual or vip targeting. A redirect to VS2 will allow the restart of the tcp connection to the new virtual and the ssl handshake.
- Paredes_342502
Nimbostratus
So I don´t have too use the command "virtual" in the irule, and do a HTTP::redirect to the IP os the virtual server 2? The fact here is that we want to have one univ url for the users, and go to VS1 or VS2 depending on the URI
- Jeff_Maddox_394Historic F5 Account
Yes, you need to redirect. Also, in your rule, you are setting variables but not using them.
when HTTP_REQUEST { if { [HTTP::uri] starts_with "/FACT"} { HTTP::redirect VS2}
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