gpt4 book ai didi

node.js - s3 云端应用代码 : NoSuchKey on refreshing

转载 作者:太空狗 更新时间:2023-10-29 18:13:37 24 4
gpt4 key购买 nike

我在 s3 中托管了我的 angular2 webapp。它也有云端。它连接到 nodejs 作为后端,它位于 AWS EBS 的不同机器上。

我的 Web 应用程序工作正常。但是当我刷新任何页面时,它会抛出 404 Not Found 并显示以下消息。

Code: NoSuchKey
Message: The specified key does not exist.
Key: user/adduser/edit
RequestId: CA306FFABB30FB75
HostId: WAp7/BZMHH0UpE3z2dJLJT4gqEwv7u/LKbFTUuHH86lRyReLXvODLgTuTw+3emnTJ3jDj2VpiYo=

你能帮忙解决这个问题吗?

最佳答案

我不确定这样做是否正确。但它解决了我的问题。我将 s3 404 重定向 url 配置为我的 index.html.ie 将我的 404 重定向指向 index.html 本身。它奏效了。

关于node.js - s3 云端应用代码 : NoSuchKey on refreshing,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43005475/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com