如何在没有域的情况下查看AWS网站?

发布于 2025-01-27 13:24:17 字数 242 浏览 3 评论 0原文

我有一个带有AWS的网站,但域名还没有准备好。我想研究它并开始测试。

该站点通过负载平衡器运行。

当我进入EC2中的负载平衡器时,我可以看到DNS名称。如果将其输入浏览器,我会收到一个警告,说它是不安全的,那么当我选择加载时,我会收到一个错误dns_probe_fined_nxdomain,

我在终端中使用了“ Dig a Dig a”命令来获取IP地址。我将此IP地址添加到主机文件中,并且在尝试这样访问时会遇到相同的错误。

I have a site hosted with AWS, but the domain is not ready yet. I want to work on it and begin testing.

The site runs through a load balancer.

When I go to Load Balancers in EC2 I can see the DNS name. If I type this into my browser I get a warning that it is unsafe, then when I choose to load anyway I get an error DNS_PROBE_FINISHED_NXDOMAIN

I used the "dig A " command in terminal to get the IP address. I added this IP address to my hosts file, and I get the same error when trying to access it like that.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦在深巷 2025-02-03 13:24:17

我得到一个警告,它是不安全的

,因为默认的ALB URL不使用HTTPS。它仅适用于HTTP,该HTTP被所有主要浏览器标记为不安全。

为了确定您需要拥有自己的域,并使用该域的AWS ACM设置有效的耻骨SSL证书。

I get a warning that it is unsafe

It is unsafe because default ALB url does not use HTTPS. It only works with HTTP which is marked as unsecure by all major browsers.

To fix that you need to have your own domain and setup a valid, pubic SSL certificate using AWS ACM for that domain.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文