Second virtual host on Apache redirects to root
- by Slytherin
I tried to setup my second virtual host , but I'm getting the default /var/www/index.html ( the one that says "It works!" )
I followed the same procedure as the first time, but this time it didn't work
my configuration looks like this
<VirtualHost *:80>
ServerName messup
ServerAlias messup.loc
ServerAdmin webmaster@localhost
DocumentRoot /var/www/messup
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
my hosts configuration is the following
127.0.0.1 localhost
127.0.1.1 SlytherinPC
127.0.0.1 AFS.loc
127.0.0.1 messup.loc
After this , my apache wouldn't restart without any message , only saying [fail] , but stop and start worked.
What am I missing ?