Apache2 : How to configure different/multiple websites in Dedicated IP

96 Views Asked by At

I have 5 websites which is to be hosted on a single dedicated server.

### Many documents(apache2) provide help to achieve this 
site1.com > should access /var/www/html/site1
site2.com > should access /var/www/html/site2

But what I want is the below scenario.... How do I achieve this(below) in Apache2?

### So for example (eg. IP:  54.33.123.21) :
54.33.123.21/site1 > should access /var/www/html/site1
54.33.123.21/site2 > should access /var/www/html/site2

I need to use only the IP. Not any domain name for now.

Thanks in advance.

1

There are 1 best solutions below

3
On

Set the Apache server DocumentRoot to /var/www/html and... that's it.