Even though I have files placed in my var/www/ folder and apache2 is running, I don't get any files listed. Also I can't access any files directly and inserting an index.html file does nothing.
I'm on trusty 64
In 14.04 the default DocumentRoot
is not /var/www/
but /var/www/html/
.
You can change that in /etc/apache2/sites-enabled/000-default.conf
(or whatever site config you re using).
/var/www/
for each host. In that case /var/www/
as DocumentRoot
may make information available that you want want to keep private. Thus it is a bad default.
May 5, 2014 at 20:53