Forum Discussion
acgutierrez_123
Nimbostratus
Aug 22, 2013HTTP to HTTPS Redirection
I have 2 Virtual Servers, one for port 80 and the other for port 443. In VS:80 there's an irule configured:
when HTTP_REQUEST {
if { [HTTP::uri] contains "/inscripcion-web/"} {
pool pool_.93y.94_869...
Kevin_Stewart
Employee
Aug 22, 2013This rule (slightly modified):
HTTP_REQUEST {
if { [string tolower [HTTP::uri]] contains "/inscripcion-web/" } {
HTTP::redirect "https://www.icfesinteractivo.gov.co:XXX/inscripcion-web/”
}
}
Will catch any request with "/inscripcion-web/" in the URI and explicitly redirect the user to another URL - presumably another SSL VIP.
If you wanted the server hosting the "/inscripcion-web/" information to be SSL, while the rest of the site is not, you can:
- Create a pool for this server - servers listening on 443 or other encrypted port
- Apply a server SSL profile to the VIP
- Apply HTTP and OneConnect profiles to the VIP
-
Add an iRule like this:
when HTTP_REQUEST { if { [string tolower [HTTP::uri]] contains "/inscripcion-web/" } { pool pool_.93y.94_8691_inscripcion-web } else { SSL::disable serverside pool pool_.93y.94_8690_inscripcion-web } }
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