Forum Discussion
DFeike_160744
Nimbostratus
Jan 06, 2015referencing the VS default pool as destination in iRule
Hi Fellows 🙂
my customer has the following requirement, the webservice shall be only available via https and ssloffload and in case http traffic arrives, a redirect VS shall do the job, except for...
nathe
Cirrocumulus
Jan 06, 2015David,
How about something like this:
when CLIENT_ACCEPTED {
Save the name of the VS default pool
set default_pool [LB::server pool]
}
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.domain-a.de" -
"www.domain-b.de" -
"www.domain-c.de" {
send these to default pool
pool $default_pool
}
default { HTTP::redirect "https://[HTTP::host][HTTP::uri]" }
}
}
I've not got my lab bigip available to can't test but hopefully it'll do the job you require.
N
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