如何使用无效的主机解决我的WebApp?

发布于 2025-02-03 09:07:53 字数 512 浏览 3 评论 0原文

不确定这是怎么发生的,但是我会遇到404个错误,而我的哨兵项目中的请求数据毫无意义。该项目将CloudFlare用于DNS,然后通过AWS网络。

curl \
 -H "Accept: */*" \
 -H "Content-Length: " \
 -H "Content-Type: " \
 -H "Host: ${ip}" \
 -H "User-Agent: curl/7.64.1" \
 -H "X-Amzn-Trace-Id: Root=[Filtered]" \
 -H "X-Forwarded-For: [Filtered]" \
 -H "X-Forwarded-Port: 443" \
 -H "X-Forwarded-Proto: https" \
 "http://${ip}/"

当我的项目击中该请求时,我的项目如何投掷404。我看不出这个请求如何解决该项目。

  1. 是什么造成这一点?
  2. 如何解决?
  3. 这是Cloudflare还是AWS的问题?

No sure how this could happen but I am getting 404 errors where the request data in my sentry project makes no sense. The project is using CloudFlare for DNS then it goes through an AWS network.

curl \
 -H "Accept: */*" \
 -H "Content-Length: " \
 -H "Content-Type: " \
 -H "Host: ${ip}" \
 -H "User-Agent: curl/7.64.1" \
 -H "X-Amzn-Trace-Id: Root=[Filtered]" \
 -H "X-Forwarded-For: [Filtered]" \
 -H "X-Forwarded-Port: 443" \
 -H "X-Forwarded-Proto: https" \
 "http://${ip}/"

How can my project throw a 404 when the requests hitting it are http://${ip}/. I don't see how this request could resolve to the project.

  1. What could be causing this?
  2. How can this be resolving?
  3. Is this an issue with CloudFlare or AWS?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文