Why has the apache2 www dir been moved to /var/www/html?
I just upgraded my server and saw that the
default.conf file in sites-available was now pointing to
/var/www/html instead of
/var/www. What was the reason for this change?
I found the bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730372
The report was filed after this mailing list discussion: https://lists.debian.org/debian-devel/2012/04/msg00301.html
Summary: Site admins usually place sites in
/var/www/site.com and there may be sensitive data in
/var/www that should not be made available via a web server. All web servers on Debian have been updated to use
/var/www/html as default instead of
Answered By – f.ardelian