Ubuntu repo Apache2 /www/html return to /www

- Posted in Dev by - Permalink

With Ubuntu 14 they’ve changed the root apache folder from /var/www to /var/www/html.

I know defuq waste of time if you ask me, so here an easy tutorial to return to the usual ways.

sudo nano /etc/apache2/sites-enabled/000-default.conf

and where it says /var/www/html,

change it to /var/www,

To apply the changes restart your apache2 server:

sudo /etc/init.d/apache2 restart

If it doesn’t work you might have to edit another file most probably /etc/apache2/apache2.conf.

I’ll be more than happy to assist if these steps aren’t working.