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

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.

Leave a Comment