Search code examples
linuxapachevirtualhostlamp

LAMP vhost still points to www/html


I've created the following virtual host file in /etc/apache2/sites-available/lion.dev:

<VirtualHost *:80>
    ServerAdmin webmaster@lion.dev
    ServerName lion.dev

    DocumentRoot /var/www/lion.dev
    <Directory />
    Options FollowSymLinks
    AllowOverride None
    </Directory>
    <Directory /var/www/lion.dev/>
    Options Indexes FollowSymLinks MultiViews
    AllowOverride All
    Order allow,deny
    allow from all
    </Directory>

    CustomLog /var/log/apache2/lion.dev/access.log combined
    ErrorLog /var/log/apache2/lion.dev/error.log
</VirtualHost>

The problem is that it is actually pointing to the /www/html folder when I visit lion.dev in my browser.

What am I missing and why isn't this working?


Solution

  • I resolved the issue by uninstalling Ubuntu and re-installing Windows 10