Forum Discussion
Chris_Admas_391
Nimbostratus
Jun 29, 2006Simple http redirect according to port
I'm sure you've already answered this if so sorry.
How would I write an irule for the following situation.
I have http traffic http://www.domain.com to vs 1 (http) and two physical servers in a pool 10.10.1.10:80 and 10.10.1.11:80
How do I route ssl traffic for https://secure.domain.com (443) to vs 2 (ssl with cert and chain cert installed on this vs so no ssl to servers) to the same two physical servers in a different pool 10.10.1.20:80 and 10.10.1.21:80
I'm using the same external self IP 10.1.1.2 with both dns records pointing to it. On the two physical servers i'm using the two different ip's for each server with the corresponding website assigned to them.
I'm wondering if i'm making any sense. Thanks for your response.
-Chris
3 Replies
- hoolio
Cirrostratus
Hi Chris, - Chris_Admas_391
Nimbostratus
Yes thats pretty much correct. - dennypayne
Employee
Chris,when HTTP_REQUEST { if { [HTTP::host] equals "secure.domain.com" } { HTTP::redirect https://secure.domain.com } else { pool pool_1 } }
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