更改IIS域名网址 [英] Change IIS domain url

查看:125
本文介绍了更改IIS域名网址的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有我的本地IIS(7.0)部署的Web应用程序,并可以正常使用。因为它在我的地方,它可以访问通过http://<> /webapp/index.aspx。现在,我想实现的是访问它的自定义URL即 http://www.someuniqueweburl.com ,并确保它不会在互联网上,当然存在,可被访问的时候,你是在同一个网络与本地IIS Web服务器上。这是可以实现的?

I have a deployed web application on my local IIS (7.0) and is working perfectly. Since it's on my local, it is accessible via http://<>/webapp/index.aspx. Now, what I am trying to achieve is to access it on a custom url i.e. http://www.someuniqueweburl.com, and will make sure that it doesn't exist on the internet and of course, can only be accessed when you are on the same network with the local IIS web server. Is this achievable?

感谢一大堆!

推荐答案

您需要某种DNS服务来实现这一点。

You need some kind of DNS service to achieve this.

您可以:

  • 注册本地网络中的DNS服务器的DNS条目,如果你有一个。然后,所有的网络应该能够sample.custom.url.com到你的IP地址

  • register a DNS entry in your local network DNS Server, if you have one. Then all your network should be able to sample.custom.url.com to your IP address

或添加一个条目行到%WINDIR%\ SYSTEM32 \ DRIVERS \ ETC \ hosts文件:

or add an entry line to your %windir%\System32\drivers\etc\hosts file :

127.0.0.1 sample.custom.url.com

127.0.0.1 sample.custom.url.com

但你会是唯一一个能够解决sample.custom.url.com。其它机器需要(而不是127.0.0.1与您的网络IP地址,)在他们的hosts文件类似的条目

but you will be the only one able to resolve sample.custom.url.com . Other machines will need a similar entry in their hosts file (with your network ip address, instead of 127.0.0.1)

这篇关于更改IIS域名网址的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆