Jan*_*ier 3 amazon-s3 amazon-web-services node.js amazon-cloudfront angular
我在s3中托管了我的angular2 webapp.它也有云端.它连接到nodejs作为后端,它位于AWS EBS中的不同机器中.
我的Web应用程序工作正常.但是当我刷新任何页面时,它会抛出404 Not Found with the message.
Code: NoSuchKey
Message: The specified key does not exist.
Key: user/adduser/edit
RequestId: CA306FFABB30FB75
HostId: WAp7/BZMHH0UpE3z2dJLJT4gqEwv7u/LKbFTUuHH86lRyReLXvODLgTuTw+3emnTJ3jDj2VpiYo=
Run Code Online (Sandbox Code Playgroud)
你能帮忙解决这个问题吗?
我不确定它是否正确.但它解决了我的问题.我将s3 404重定向url配置为我的index.html.ie将我的404重定向指向index.html本身.有效.
| 归档时间: |
|
| 查看次数: |
1166 次 |
| 最近记录: |