神秘的阿帕奇在debian伸展

我已经在Debian Stretch系统上安装了Apache。 我没有启用网站,但由于某种原因/var/www/html/index.html仍呈现,如果我去http://hostname

加载的网站:

 root@hostname:/etc/apache2# a2query -s No site matches (disabled by site administrator) 

访问日志将在/etc/apache2/conf-enabled/other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf设置/var/log/apache2/other_vhosts_access.log /etc/apache2/conf-enabled/other-vhosts-access-log.conf -> ../conf-available/other-vhosts-access-log.conf

 root@hostname:/etc/apache2/conf-enabled# more other-vhosts-access-log.conf # Define an access log for VirtualHosts that don't define their own logfile CustomLog ${APACHE_LOG_DIR}/other_vhosts_access.log vhost_combined # vim: syntax=apache ts=4 sw=4 sts=4 sr noet 

我怎样才能find什么设置是这样做的? 我想禁用VirtualHost ,现在,没有页面被加载/渲染。

Apacheconfiguration时有一个默认的虚拟主机。 您可以通过创build一个具有要禁用的域名的虚拟主机来禁用它。 在configuration中,你可以告诉Apache例如返回404到每个请求。