简体   繁体   English

使用IIS从https url中删除自定义端口号

[英]Remove the custom port number from https url using IIS

I have a site which is configured in IIS7. 我有一个在IIS7中配置的站点。 Currently, the site named Site1, which uses the https protocol with a custom port number 5001. I can access this site by using the url given below: 目前,该站点名为Site1,它使用https协议和自定义端口号5001.我可以使用下面给出的URL访问此站点:

https://demo.mydomain.com:5001/Site1

I need to eliminate the port number from the url, but it should access the same content which is used by the url " https://demo.mydomain.com:5001/Site1 ". 我需要从网址中删除端口号,但它应该访问网址“ https://demo.mydomain.com:5001/Site1 ”使用的相同内容。

Expected result should be like this: "https://demo.mydomain.com/Site1"

Any help is much appreciated. 任何帮助深表感谢。

In IIS Manager, click on the Site (left pane) and the click Bindings (right pane). 在IIS管理器中,单击“站点”(左窗格),然后单击“绑定”(右窗格)。 You'll see a binding for port 5001. Edit that binding to be port 443. ( https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/site/bindings/binding ) 您将看到端口5001的绑定。将该绑定编辑为端口443.( https://docs.microsoft.com/en-us/iis/configuration/system.applicationhost/sites/site/bindings/binding

My guess though is you have some other site that is bound to port 443, if that is the case you either need to remove it from the other site, or if you need them to coexist, you need to dig into SNI which is a bit more advanced topic ( SNI and SSL on IIS 8.5 ) 我的猜测是,你有一些其他网站绑定到端口443,如果是这种情况你需要从其他网站删除它,或者如果你需要它们共存,你需要挖掘SNI这是一点点更高级的主题( IIS 8.5上的SNI和SSL

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM