gpt4 book ai didi

http - http ://*:80 and http://+:80有什么区别

转载 作者:可可西里 更新时间:2023-11-01 15:03:53 32 4
gpt4 key购买 nike

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

最佳答案

引自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.

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

关于http - http ://*:80 and http://+:80有什么区别,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4598164/

32 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com