我已将许多C#Web应用程序部署到我们的内部Web服务器,因此它们只能供我们的内部用户使用。
网络服务器正在运行IIS 8.5,我已经在应用程序中设置了几个站点,这是正常工作,除了您必须用于导航到应用程序的URL采用以下格式{{ 1}}。
我想更改此设置,以便网址更加用户友好,他们不必记住服务器名称和端口号。
我是一个IIS菜鸟所以我不知道该怎么看/尝试所以任何解释使用一个音节的单词将不胜感激!
我已经看到这可能涉及与绑定(?)有关,所以我在下面的网站中包含了我当前的绑定设置。
serverName:portNumber
提前致谢
答案 0 :(得分:0)
In IIS you can right click on each website and go to Edit Bindings and you will be able to configure IP addresses and ports in there. If you leave the IP address as * (or "All Unassigned" as IIS calls it) and you want to have multiple sites with the same port number (80), then you need to specify the host name for each site. www.mysite1.com for the first site and www.mysite2.com for the second site as in your example. Of course you'll have to make sure those host names are in DNS so that your users will be able to connect to the server when they type in the URL.
答案 1 :(得分:-2)
尝试更改C:\Windows\System32\drivers\etc
将会有一行“127.0.0.1 localhost”,您可以取消注释并在此处添加您的IP。
例如:ip : port staging.yoursite.com