繁体   English   中英

AWS 负载均衡器附加:80 到 url 上 http 到 https 301 重定向

[英]AWS Load Balancer appends :80 to url on http to https 301 redirect

当我 go 到我的示例应用程序时: https://example.com/r/123它按预期工作。

If I go to http://example.com/r/123 it seems the load balancer changes the url to https://example.com:80/r/123 .

此页面导致 ERR_SSL_PROTOCOL_ERROR。

是否可以让 AWS 不在重定向中添加端口( :80 )?

在此处输入图像描述

我的问题通过将服务器 IP 更改为0.0.0.0而不是 nuxt 服务器配置中localhost的默认值来解决。

// nuxt.config.js
server: {
    host: '0.0.0.0',
},

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM