on 04-Jun-2015 16:03
Here at F5's LineRate division we often write about our Node.js scripting engine and its use cases by way of script examples. But today I am going to describe to you a less talked about feature in our product. In the world of applications it is not uncommon to have multiple domains mapped to the same IP address.
LineRate provides the ability to attach the same virtual IP to more than one virtual server. This can be useful where an organisation has several applications for its customers, or the case were organisations have merged and IT systems are being rationalized.
In such cases (as shown in the figure below) applications and their domains can have dedicated virtual servers on a LineRate load balancer. When a client makes an HTTP request, the LineRate load balancer inspects the 'Host' field in the HTTP header and directs it to the appropriate virtual server. This is accomplished with the hostname configuration on the virtual server.
hostname configuration example
!
virtual-ip vipweb1
ip address 192.0.2.1 80
base vipbase_vip1
admin-status online
!
virtual-server example-com
lb-algorithm round-robin
service http
hostname www.example.com
attach virtual-ip vipweb1
attach real-server rsweb1
attach real-server rsweb2
!
virtual-server example-net
lb-algorithm round-robin
service http
hostname www.example.net
attach virtual-ip vipweb1
attach real-server rsweb3
!
virtual-server default-server
lb-algorithm round-robin
service http
attach virtual-ip vipweb1 default
attach real-server rsweb4
attach real-server rsweb5
!
If you haven't tried out LineRate, have a go, it's free. If you have further questions on this or any of the related articles on LineRate at DevCentral, reach out to us. We are here to help.