目前,我的网站映射如下
Currently, I have a website mapping as following
subdomain.domain/<virtualdir> to <IP Address>/<virtualdir>我希望仅通过子域访问虚拟目录:
I want the virtual directory to be accessed with just the subdomain:
subdomain.domain/,使其指向<IP Address>/<virtualdir>
我正在使用IIS 10,Windows Server 2016.
Im using IIS 10, windows server 2016.
我可能有哪些选择?
推荐答案如果我正确理解了您的问题,则需要 http: //subdomain.domain/可以通过纯URL subdomain.domain进行访问. 如果是这种情况,您想进入IIS: 1.选择 2.右键 3.转换为应用程序
If I understand your question correctly you want subdomain.domain/ to be accessible by the plain URL subdomain.domain. If that is the case you want to go into your IIS: 1. select 2. right click 3. convert to application
然后,您可以像其基本网站一样为它提供绑定,并带有所需的DNS条目.
You can then give it bindings just like your base website with your desired DNS entry.
旁注;然后,您可以从所需的基础站点上删除绑定,也可以为其提供相同的地址 subdomain .domain ,但其他端口为 subdomain.domain: 8080 访问和 subdomain.domain 以获取原始内容.基础站点
Side note; You can then either remove your binding from the base site that you want on the or give it the same address of subdomain.domain but some other port so it would be subdomain.domain:8080 to access the and subdomain.domain for the original content at the base site
更多推荐
如何将IIS虚拟目录映射到子域?
发布评论