http:// *:80和http:// +:80之间有什么区别? [英] What's the difference between http://*:80 and http://+:80

查看:5282
本文介绍了http:// *:80和http:// +:80之间有什么区别?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在了解 Web Deploy 时,我遇到了一些netsh。 exe命令讨论http:// +:80和http:// *:80。这是什么意思?

In learning about Web Deploy I came across some netsh.exe commands that talk about http://+:80 and http://*:80. What do those mean?

推荐答案

引自 URLPrefix Strings(Windows)


当UrlPrefix的host元素由单个加号(+)组成时,UrlPrefix会在其scheme,port和relativeURI元素的上下文中匹配所有可能的主机名,并且属于强通配符类别。

When the host element of a UrlPrefix consists of a single plus sign (+), the UrlPrefix matches all possible host names in the context of its scheme, port and relativeURI elements, and falls into the strong wildcard category.

当星号(*)显示为主机元素时,UrlPrefix将进入弱通配符类别。这种UrlPrefix匹配与指定方案关联的任何主机名,端口和relativeURI尚未与强通配符,显式或IP绑定的弱通配符UrlPrefix匹配。
在某些情况下,此主机规范可用作默认的catch-all,或者可用于指定URL命名空间的大部分,而无需使用多个UrlPrefix。

When an asterisk (*) appears as the host element, then the UrlPrefix falls into the weak wildcard category. This kind of UrlPrefix matches any host name associated with the specified scheme, port and relativeURI that has not already been matched by a strong-wildcard, explicit, or IP-bound weak-wildcard UrlPrefix. This host specification can be used as a default catch-all in some circumstances, or can be used to specify a large section of URL namespace without having to use many UrlPrefixes.

:80之后显示您正在访问通配符字符串匹配的URL的端口。 80是用于访问普通网页的最常用(如果不是最常见)端口之一。

The :80 afterwards shows the port through which you're accessing the URL matched by the wildcard string. 80 is one of the most (if not the most) common port used to access normal webpages.

这篇关于http:// *:80和http:// +:80之间有什么区别?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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