1
I want to set up an environment where I can place my production applications (site1) and type approval (site2).
So on my Ubuntu server 15.10 I rode as follows:
- /var/www/html/site1
- /var/www/html/site2
No /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>
No /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 Apache help and checked the existence of Servername, but I don’t have DNS. So can I set this up? Where’s my bug?
Thank you very much
I have had problems with Ubuntu 15.10 to configure Apache Servers. Have you tried using 14.04? Despite being an older version, it has already been well tested and approved.
– Emerson