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 /var/www.

Answered By – f.ardelian

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More