So I created a very simple site containing only index.html with the text 'welcome'. the virtual host of this site is as follows:
ServerAdmin [email protected]
ServerName name.com
ServerAlias www.name.com
DocumentRoot /var/www/name.com/public_html
This works just fine. Then I make another site which I want to be www1.name.com
with the text www1
.
I do practicly the same, I make a folder /var/www1/name.com/public_html
with index.html
in it
I copy the previous file and change it
ServerAlias www1.name.com
DocumentRoot /var/www1/name.com/public_html
but when going to www1.name.com, I get the text 'Welcome' and not 'www1'. Can anyone please help me with this?
And yes I always do a2ensite/a2dissite
and service apache2 restart