让我的域指向一个静态 IP,其中我的网站托管在“/applicationName”
Make my domain to point a static IP in which my website is hosted with "/applicationName"
如何让我的域在 iis 中使用/应用程序名称指向我的静态 IP 对我来说非常痛苦。
我已成功指向我的静态 IP,但我如何才能指向托管在 / 文件夹中的我的网站,例如 122.33.44.55/MyApp
。
有什么办法吗?我正在使用 iis 10。
我已经尝试过带屏蔽的域转发,但所有网址都隐藏在我的域中。
ok i understood what you are saying.but when i create new website like website2 and add my application inside it then how can i point it with my domain which i have purchased ??. my main concern is that i want to point suppose 233.44.32.1/MyApp from my domain www.showapp.com
当你create a new site in IIS时,如果你有超过1个Sites
,而你的服务器只有1个IP,或者你想为多个站点共享同一个IP,那么使用host headers
(link中概述的步骤中的#10)
操作窗格 -> 编辑站点 -> 绑定(IIS 管理器)
截图显示:
- IIS 中的多个
Sites
Site
的编辑-> 绑定时的对话框 - 在此屏幕截图中,我正在编辑我命名为 WebApi
的网站的绑定(每个网站都有自己的 bindings/settings).
- 提供您服务器的 public IP 地址
- 添加主机名 - 例如
www.domain.com
- 您可能需要执行两次 - 为主机重复上述步骤 header
domain.com
(否 "www")
- 假设您已正确配置
DNS
和网络,您应该设置好了。
备注:
屏幕截图显示了我的本地 IIS 服务器。它不是 public 所以我不做 public DNS 并且只是为我想要的任何主机设置我的本地 hosts
文件(而不是 DNS)(不是像 dev.webapi
这样的有效 TLD以上)
有多种设置服务器的方法(例如 public 与网络中的本地 IP 等),我不会在这里详细介绍,所以这些是 "general"
如何让我的域在 iis 中使用/应用程序名称指向我的静态 IP 对我来说非常痛苦。
我已成功指向我的静态 IP,但我如何才能指向托管在 / 文件夹中的我的网站,例如 122.33.44.55/MyApp
。
有什么办法吗?我正在使用 iis 10。
我已经尝试过带屏蔽的域转发,但所有网址都隐藏在我的域中。
ok i understood what you are saying.but when i create new website like website2 and add my application inside it then how can i point it with my domain which i have purchased ??. my main concern is that i want to point suppose 233.44.32.1/MyApp from my domain www.showapp.com
当你create a new site in IIS时,如果你有超过1个Sites
,而你的服务器只有1个IP,或者你想为多个站点共享同一个IP,那么使用host headers
(link中概述的步骤中的#10)
操作窗格 -> 编辑站点 -> 绑定(IIS 管理器)
截图显示:
- IIS 中的多个
Sites
Site
的编辑-> 绑定时的对话框 - 在此屏幕截图中,我正在编辑我命名为WebApi
的网站的绑定(每个网站都有自己的 bindings/settings).- 提供您服务器的 public IP 地址
- 添加主机名 - 例如
www.domain.com
- 您可能需要执行两次 - 为主机重复上述步骤 header
domain.com
(否 "www") - 假设您已正确配置
DNS
和网络,您应该设置好了。
备注:
屏幕截图显示了我的本地 IIS 服务器。它不是 public 所以我不做 public DNS 并且只是为我想要的任何主机设置我的本地
hosts
文件(而不是 DNS)(不是像dev.webapi
这样的有效 TLD以上)有多种设置服务器的方法(例如 public 与网络中的本地 IP 等),我不会在这里详细介绍,所以这些是 "general"