Forum Discussion
mikeshermanit_2
Nimbostratus
Feb 27, 2017Redirect to different VS - iRule
I have two VS one listening on port 80 and the other 443 and they share the same IP.
They are two different back-end servers.
Right now SSL traffic is only flowing to the VS listening on ...
DevBabu
Cirrus
Feb 27, 2017Basically we need to have a port 80 and port 443 virtual both loadbalancing to the same pool for port 80.
Port 443 VS should have SSL offloaded and HTTP Profile in it.
Then iRule on port 80 virtual server with HTTP Profile:
when HTTP_REQUEST {
if { [HTTP::path] equals "example.asp" } {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
}
}
If you are looking directly to point to the vs name checkout the following link:
https://devcentral.f5.com/wiki/iRules.virtual.ashx
I am not sure, if pointing directly to a VS works as the request protocol will not be changed when it hits the 443 virtual.
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