Hi Aaron,
Just for clarification – are the VMs being assigned different IP addresses? You should be able to access them using their assigned addresses in order to log into the site. Depending on how the VM is set up by the host, then it should be assigned different IP addresses whenever the vNIC goes through the virtual switch (which acts as a DHCP server) and goes down to the host.
Depending on the VMs OS – try running an “ifconfig” or “ipconfig” command and make sure the IPv4/IPv6 address differs from one another.
WordPress shouldn’t have any problems with two VMs running on the same server assuming they each have different IP addresses so they can be accessed through the internet. If they don’t, then you may want to reach out to your host and determine how you can set up these VMs to use different IP addresses.
I’m unable to specify mydomain1 or mydomain2
In order to use a domain name and not an IP, you will need to have a domain registered and set up so the domain’s A record points towards your VMs IP address.
Regards,
Tyler
Thanks Tyler.
When you say VM do you mean virtual host or virtual machine instance? I’ll assume you mean virtual machine.
Yes both VM’s have their own unique IP but maybe I’m not explaining it well.
Here is my current setup behind a load balancer.
VM A: ip address 192.168.16.100
virtual sites on each server
http://mydomain1.com/wp-admin
http://mydomain2.com/wp-admin
virtual sites on each server
VM B: ip address 192.168.16.101
http://mydomain1.com/wp-admin
http://mydomain2.com/wp-admin
http://mydomain1.com/wp-admin on VM A is equivalent to http://mydomain1.com/wp-admin on VM B.
and
http://mydomain2.com/wp-admin on VM A is equivalent to http://mydomain2.com/wp-admin on VM B.
If I type in a http://mydomain1.com/wp-admin I don’t know if I’m on VM A or VM B. I only want to do edits on VM A.
If I type in http://192.168.16.100/wp-admin I can’t specify that I want to edit mydomain1 or mydomain2.
Thanks!