s3 cloudfront应用程序代码:NoSuchKey刷新 [英] s3 cloudfront app Code: NoSuchKey on refreshing

查看:98
本文介绍了s3 cloudfront应用程序代码:NoSuchKey刷新的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将我的angular2 Web应用托管在s3中。它也有云端。
它连接到nodejs作为后端,该后端在AWS EBS的另一台计算机中。



我的Web应用程序工作正常。但是当我刷新任何页面时,抛出404找不到以下消息。

 代码:NoSuchKey 
消息:指定的密钥不存在。
键:user / adduser / edit
RequestId:CA306FFABB30FB75
HostId:WAp7 / BZMHH0UpE3z2dJLJT4gqEwv7u / LKbFTUuHH86lRyReLXvODLgTuTw + 3emnTJ3jDj2V $ c $ b $ c $ b $ c
$ c $

您能帮助解决此问题吗?

解决方案

我不确定它是否正确的做法。但这解决了我的问题。
我将s3 404重定向URL配置为我的index.html.ie,将我的404重定向指向了index.html本身。可行。


I have my angular2 webapp hosted in s3. it has cloudfront as well. Its connecting to nodejs as backend which is in different machine in AWS EBS.

My web application works fine.But when i refresh any page , its throwing 404 Not Found with the below message.

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

Can you help to resolve this?

解决方案

I am not sure if its the correct thing to do.But it fixed my issue. I configured s3 404 redirection url to be my index.html.ie pointed my 404 redirection to index.html itself. It worked.

这篇关于s3 cloudfront应用程序代码:NoSuchKey刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆