Name Based Virtual Hosting with LTM
We get a lot of posts about the best way to use LTM for name based virtual hosting: Conserving routable IP addresses by hosting multiple websites on the same virtual server and load balancing request...
Published Nov 29, 2007
Version 1.0Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
Deb_Allen_18
Historic F5 Account
Joined September 25, 2004
JRahm
Nov 29, 2007Admin
For the httpclass configuration, that would be:
[code]
profile httpclass hotkittehs_class {
defaults from httpclass
pool hotkittehs
redirect none
hosts "iz.hotkittehs.com"
}
profile httpclass bukkitsgalor_class {
defaults from httpclass
pool bukkitsgalor
redirect none
hosts "www.bukkitsgalor.org"
}
profile httpclass icanhaz_class {
defaults from httpclass
pool icanhaz
redirect none
hosts "icanhaz.devcentral.f5.com"
}
[/code]
Then in the virtual, you would attach these classes in the resource section instead of the irule. I'm not sure which would be more efficient in processing requests, but the irule cuts down on some configuration, particularly if your vhosts are quite numerous.