Forum Discussion
Angelo
Nimbostratus
Jan 21, 2013multiple sites on HTTP and HTTPS
Hi
I got a request to add multiple web-site on my F5 but i have IP limitations. I have rule for one site to work on http and https but how will i add multiple web-sites to this rule... ...
What_Lies_Bene1
Cirrostratus
Jan 22, 2013OK great.So, I think all you'll want to do is remove the pool commands from the CLIENT_ACCEPTED event and then lookup the requested hostname in the HTTP_REQUEST even and specify the pools there. Something like this;
when CLIENT_ACCEPTED {
switch [TCP::local_port] {
80 { SSL::disable clientside
SSL::disable serverside
return
}
443 {
return
}
default {
reject
}
}
}
when HTTP_REQUEST {
switch [string tolower [HTTP::host]] {
"www.test.com" -
"www.example.com" { pool number1 }
"www.something.com" { pool number2 }
"www.testing.com" { pool number3 }
If HTTP host is none of the above, take the default action below
default {
reject }
}
}
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