Name Based Virtual Hosting with LTM
Published Nov 29, 2007
Version 1.0Was this article helpful?
[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.