Here is my question, I want to have 2 wordpress installation inside my VM.
folder structure:
/var/www/site1
/var/www/site2
url structure:
site1: ipaddress/
site2: ipaddress/site2
the problem I am facing is that I want site2 independent without access to site1, so when I put in on link inside site2 like this /page1.html it should not go to ipaddress/page1.html, but it should go to ipaddress/site2/page1.html So all resources would be block to current root of site2.
So how should be the config inside apache2. I am using alias, but it let all requests from site2 got to root of site 1. that can not happen.
Open in new window
Open in new window
Alias one (site1) would be accessed by http://ipaddress/site1
Alias two (site2) would be accessed by http://ipaddress/site2
To have them on different urls you would need to setup different domain names for each - for instance you can do the following. Create the following DNS / Hosts entries
Open in new window
Then setup your virtual hosts as
Open in new window
Now you would access them as
Open in new window