Host Multiple Web Sites with Single IP on Kemp VLM

Tutorial on how to Host Multiple Web Sites with Single IP on Kemp VLM with Content Switching Rule

We will use back the same lab from Reverse Proxy for Nginx with Kemp VLM

Refer to How to Setup Nginx on Ubuntu 18.04 to prepare Nginx with the following 3 x Web Sites

  • uat.aventislab.info
  • prod.aventislab.info
  • test.aventislab.info

Host Multiple Web Sites with Single IP on Kemp

Content Switching Rules

Create a new Content Rules to determine where to send the requests to

Click on Content Rules – Create New

Enter the following information

  • Header Field = host
  • Match String = uat.aventislab.info

Repeat the same steps to create Content Rule for UAT, PROD & TEST

Sub Virtual Services

Sub Virtual Service per workload allows us to define different real servers per SubVS as well as a different health check

Enable Content Switch in Advanced Properties

Delete the existing Real Server from the previous lab

Click Add SubVS

SubVS#1 is created successfully

Click Modify to add the Real Server

Enter SubVS Name and click Set Nickname. Click Add New to continue

Enter the Real Server Address and click Add This Real Server to continue

Repeat the same steps to create 3 x SubVS as below

Multiple Web Sites with Single IP on Kemp with Content Switching Rules

Go to Virtual Services – View / Modify Services – SubVSs and click Rule to add the Content Switching Rules created previously

Add the Content Switching Rule accordingly

Different Content should be displayed based on the URL provided now

Add 1 x Web Site from IIS Server

We had setup a Windows 2019 IIS Server (192.168.1.230) for this lab

Create a new Content Switch Rule for IIS Server in Kemp

Create a new SubVS for IIS

Configure the Real Server to point to IIS Server

https://iis.aventistech.info will be redirected to IIS Server now

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top