What's the difference between http://*:80 and http://+:80

kenwarner picture kenwarner · Jan 4, 2011 · Viewed 11k times · Source

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

Answer

rownage picture rownage · Jan 4, 2011

As quoted from URLPrefix Strings (Windows):

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.

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.

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.