-
使用http component部署了一个next.js应用,并使用了自定义的域名。
希望可以实现用户在访问 http://my.domain.com 时自动重定向至 https://my.domain.com 。可如果将 protocols 只填写https,用户通过 http 访问时会得到426错误。 请问这种重定向是否可以实现呢?万分感谢。 |
Beta Was this translation helpful? Give feedback.
Answered by
c0per
Apr 10, 2022
Replies: 1 comment 4 replies
-
我可以在网页控制台中修改由http component创建的api网关,开启“强制https"将http定向至https。 能否在 |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
c0per
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
我可以在网页控制台中修改由http component创建的api网关,开启“强制https"将http定向至https。
能否在
serverless.yml
中进行类似的配置呢?apigw
中好像没有类似的项。