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

配置Google托管证书与HTTPS LB后Apache网站HTTPS访问报错求助

HTTPS访问失败排查求助

我按官方教程搭建Apache服务器后,HTTP访问(域名newdany.us.to和VM公网IP)都正常,能正常显示Hello World。之后配置了Google HTTPS负载均衡并申请了Google托管证书,证书已正常颁发,同时将Cloud DNS的域名解析修改为指向LB的公网IP,但现在通过HTTPS访问newdany.us.to时出现以下错误:

upstream connect error or disconnect/reset before headers. retried and the latest reset reason: remote connection failure, transport failure reason: delayed connect error: 111

我的Apache配置文件000-default.conf内容如下:

<VirtualHost *:80>
        ServerName newdany.us.to
        ServerAdmin webmaster@localhost
        DocumentRoot /var/www/html
        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>

我已经在该配置中添加了ServerName newdany.us.to,不确定是否配置正确。


后续我又执行了这些操作:

  • 创建了HTTPS负载均衡前端
  • 在/var/www/sites/abc/路径下创建新的index.html文件
  • 创建新的Apache配置文件abc.com.conf
  • 修改配置中的DocumentRoot指向新创建的index文件
  • 执行sudo a2dissite 000-default.conf禁用原有默认配置
  • 执行sudo a2ensite abc.com.conf启用新配置
  • 执行sudo service apache2 reload重新加载Apache服务

但问题仍然存在,想请教需要修改哪些服务器端配置才能解决HTTPS访问失败的问题,谢谢!


内容的提问来源于stack exchange,提问作者dany L

相关产品推荐
方舟 Agent Plan

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

最近更新时间:2026.06.25 14:55:10