I want to set up an environment where I can put my production applications (site1) and approval (site2).
Then on my Ubuntu 15.10 server I mounted it as follows:
- /var/www/html/site1
- /var/www/html/site2
In /etc/apache2/sites-enabled/site1.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/site1
Alias /site1 /var/www/html/site1
<Directory /var/www/html>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
In /etc/apache2/sites-enabled/site2.conf:
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html/site2
Alias /site2 /var/www/html/site2
<Directory /var/www/html>
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Whenever I type in the localhost / site1 URL, it works perfectly. But when I type localhost / site2, it indicates that it was not found. I looked at the Apache help and checked for ServerName, but I do not have DNS. So I can set this up? Where is my mistake?
Thank you very much