Forum Discussion
razorack_110239
Nimbostratus
Feb 28, 2008How to choose which virt based on header
I posted yesterday with an issue with my F5 and https redirection to a uri that did not have www in it and realized after reading several pot that this will not work due to how SSL works.
So...
razorack_110239
Nimbostratus
Feb 28, 2008when HTTP_REQUEST {
if {[HTTP::host] starts_with "www."} {
HTTP::redirect "https://[HTTP::host][HTTP::uri]"
} else {
HTTP::redirect "https://www.[HTTP::host][HTTP::uri]"
}
}
This is the iRule I was trying to use yesterday to do the first problem, is there a way to utilize this iRule and tell it which virt to send the traffic?
razorack---
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
