问题描述
我刚刚升级了我的服务器,发现 sites-available 中的 default.conf
文件现在指向 /var/www/html
而不是 /var/www
.这种变化的原因是什么?
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?
推荐答案
我找到了错误报告:http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=730372
此邮件列表讨论后提交了该报告:https://lists.debian.org/debian-devel/2012/04/msg00301.html
The report was filed after this mailing list discussion: https://lists.debian.org/debian-devel/2012/04/msg00301.html
总结:站点管理员通常将站点放置在 /var/www/site.com
中,并且 /var/www
中可能存在敏感数据> 不应通过网络服务器提供.Debian 上的所有 Web 服务器都已更新为默认使用 /var/www/html
而不是 /var/www
.
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
.
这篇关于为什么 apache2 www 目录已移至/var/www/html?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!