Forum Discussion
Banny_Lau_10257
Nimbostratus
Jun 24, 2005How to write irule to form the function of Virtual Host?
Hi !
Could irule form the function of Virtual Host like Apache? How to do it? Could you have simple example for it ? Thanks a lot !
Banny
Brian_Gupta_115
Nimbostratus
Jun 25, 2005This should get you started.
when HTTP_REQUEST {
set my_vhost [string tolower [HTTP::host]]
if { $my_vhost == "www.shoe.com" } {
pool shoepool
} elseif { $my_vhost == "blog.shoe.com" } {
pool blogpool
} else {
reject
}
}
-Brian
P.S. - Let us know what you are trying to do
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
