我真的不知道该发什么给你,所以请问。问题是我无法通过 localhost 或我机器的主机名或 127.0.0.1 访问我的本地 apache2 网络服务器。起初我实际上可以通过我的主机名 (andrey-desktop) 访问它,但问题是它指向不同的 IP 地址 (127.0.0.53),而其他主机名指向默认 IP 地址 (127.0.0.1)。我无法设置我的 .htaccess 来工作,所以我将 apache2.conf 中的内容从AllowOverride 无到全部现在根本打不开。错误是 ERR_CONNECTION_REFUSED。此外,当我尝试自己修复此问题时,我的浏览器中打开了一个 PHPMyAdmin 选项卡,并且它始终成功加载,即使现在我可以访问它,但我无法打开网站本身。
# This file is managed by man:systemd-resolved(8). Do not edit.
#
# This is a dynamic resolv.conf file for connecting local clients to the
# internal DNS stub resolver of systemd-resolved. This file lists all
# configured search domains.
#
# Run "resolvectl status" to see details about the uplink DNS servers
# currently in use.
#
# Third party programs must not access this file directly, but only through the
# symlink at /etc/resolv.conf. To manage man:resolv.conf(5) in a different way,
# replace this symlink by a static file or a different symlink.
#
# See man:systemd-resolved.service(8) for details about the supported modes of
# operation for /etc/resolv.conf.
nameserver 127.0.0.53
options edns0 trust-ad