You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

macOS Ventura 13.7下Apache 2.4虚拟主机ERR_CONNECTION_REFUSED错误排查与配置恢复求助

macOS Ventura 13.7下Apache 2.4虚拟主机ERR_CONNECTION_REFUSED错误排查与配置恢复求助

各位大佬好,我在macOS Ventura 13.7上配置过多个虚拟主机,距离上次设置已经过去好几年了,现在要新建一个站点做开发,但不管是系统配置出问题了还是我自己忘了步骤,现在本地的网站(不管是HTML还是PHP的)都没法正常打开运行,一直报ERR_CONNECTION_REFUSED错误,想请大家帮忙排查下问题,恢复配置让本地能正常访问这些站点。

当前配置情况

1. /etc/hosts 文件内容

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1   localhost
255.255.255.255 broadcasthost
::1             localhost
127.0.0.1   mysite1.com
127.0.0.1   mysite2.com
127.0.0.1   mysite3.com
127.0.0.1   mysite4.com
127.0.0.1   mysite5.cc
127.0.0.1   mysite6.com
127.0.0.1   mysite7.com
127.0.0.1   kubernetes.docker.internal
# kubernetes added by Docker Desktop
# To allow the same kube context to work on the host and the container:
# End of section

2. /etc/apache2/httpd.conf 文件相关内容

# Virtual hosts
Include /private/etc/apache2/ext...

备注:内容来源于stack exchange,提问作者chillywilly

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 13:53:16