如何将IIS虚拟目录映射到子域?

编程入门 行业动态 更新时间:2024-10-27 18:20:32
本文介绍了如何将IIS虚拟目录映射到子域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

目前,我的网站映射如下

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虚拟目录映射到子域?

本文发布于:2023-07-16 04:21:10,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1117777.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:如何将   虚拟目录   IIS   到子域

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!