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
相关产品推荐
相关产品推荐

