Same Domain, Different VHOST, Different IP?

SoreGUms

Active Member
#1
So is this possible?

Server1:
Domain1 - IP1 - Listner1 - Vhost1
Domain2 - IP2 - Listner2 - Vhost2

Server1:
www.domain.com - 192.168.0.1 - 192.168.0.1:80 - Vhost1 - /var/www/vhost1/html
www.domain.com - 192.168.0.2 - 192.168.0.2:80 - Vhost2 - /var/www/vhost2/html

I need two websites live at the same time using the same domain. Old site, New site. Can the above be done in LSWS?

If we could just address the above and ignore the fact that I need modify hosts files to get to different IP's that would be good.

Thanks :)
 

mistwang

LiteSpeed Staff
#2
while, you can configure LSWS as you described, but the real problem is the DNS, when a user access "www.domain.com", which IP the DNS should point to? You have to use different domain name, it is not a LSWS configuration issue but a DNS issue.
 

SoreGUms

Active Member
#3
Great.

This was never meant for "everyone" it was meant for me to be able to work on a new site (using the exact domain that will be used) while the current one worked unaffected.

Thanks :)
 
Top