本地 URL 不起作用 - Asp .net core - 本地 iis 服务器

发布于 2025-01-12 04:58:10 字数 380 浏览 3 评论 0原文

我已将我的 asp .net core 发布到本地文件夹 (D:\le1testing) 中。代码发布没有错误。 另外,在本地 IIS 服务器中创建站点作为 le1testing,并绑定主机,如下所示。 在此处输入图像描述

但是,当我点击本地域链接时,它不起作用。它显示以下附加错误。 在此处输入图片说明 任何人都可以帮我解决这个问题。 谢谢

I have publish my asp .net core into local folder (D:\le1testing). Code published without error.
Also, created site in local IIS server as le1testing, and binding the host like below.
enter image description here

But, when i hit the local domain link, it is not working. it showing the below attached error.
enter image description here
Anyone help me to fix this iisue.
Thanks

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

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

发布评论

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

评论(1

画中仙 2025-01-19 04:58:10

www.le1testing.com 是公共域名吗?如果没有,则说明没有绑定对应的IP地址。公共 DNS 无法将域映射到特定服务器 IP。

如果想通过网络访问域名,需要购买一个公网域名,并将其映射到服务器IP。

如果你想通过局域网或本地机器访问它,你可以编辑hosts文件。该文件的路径是C:\Windows\System32\drivers\etc。添加如下记录:127.0.0.1 www.le1testing.com。然后就可以通过本地机器访问它了。编辑其他机器的host文件,如IIS机器IP www.le1testing.com可以允许它们通过局域网访问站点。

Is the www.le1testing.com a public domain name? If not, that means there's no correspond IP address binds to it. Public DNS cannot map the domain to specific server IP.

If you want to access the domain through network, you need to buy a public domain name and map it to server IP.

If you want to access it through LAN or local machine, you can edit hosts file. The file's path is C:\Windows\System32\drivers\etc. Add a record like this:127.0.0.1 www.le1testing.com. Then you can access it through local machine. Edit other machines' host file like IIS machine IP www.le1testing.com can allow them access site through LAN.

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