Forum Discussion
Arley_6164
Nimbostratus
Jun 29, 2009One Virtual Server on All Ports
I was trying to consolidade some of our big-ip deployments and came with an ideia for some websites to aggregate them on one single Virtual Server. For that matter I'd set up a VS listening on *all ports* and build my irule as follow:
if {[TCP::local_port] equals 80} {
switch -glob [string tolower [HTTP::host]] {
"foo.com"{ pool foo }
default {
discard
}
}
}
elseif {[TCP::local_port] equals 443} {
switch -glob [string tolower [HTTP::host]] {
"secure.foo.com"{ pool foo_secure }
default {
discard
}
}
}
else {
[HTTP::redirect "http://www.microsoft.com"]
}
Basically debugs shows nothing, it seems that the Virtual Server doesnt even comes up when *All Ports* option enabled, no traffic reaches the irule.
Any ideas?
Cheers,
Arley
4 Replies
Sort By
- The_Bhattman
Nimbostratus
What is the EVENT are you using? - hoolio
Cirrostratus
If you want to selectively decrypt SSL for some requests, you would need to add a client SSL profile to the virtual server and then disable it for requests which don't use SSL. - Arley_6164
Nimbostratus
Posted By cmbhatt on 06/29/2009 11:07 AM
- The_Bhattman
Nimbostratus
Did you try when SERVER_CONNECTED
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