Hello and Thank you for your help

I am on a Window computer running a virtualbox with Ubuntu 20.04 Lamp server. I am trying to host two wordpress site and can not get it to work right. If I enable one site at a time they work but if I enable both sites it only takes me to one of them. In my windows host file I have 192.168.1.5 pointed at example1.local and example2.local. In a browser example1.local takes me to example1.local and example2.local takes me to example1.local. I Cant find anything wrong in both .conf files for virtualhosting

4 Spice ups

If you wish to set up multiple websites you need to configure vhosts by creating / editing the following:

Apache\conf\extra\httpd-vhosts.conf

Refer to this link:
https://httpd.apache.org/docs/2.4/vhosts/examples.html

The first example should get you started on vhosting 2 sites

1 Spice up