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

前端 未结 2 378
广开言路
广开言路 2020-12-01 03:41

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

2条回答
  •  死守一世寂寞
    2020-12-01 04:08

    In a few basic words, "*" handles requests if no one else did and "+" handles requests even if it was handled by any other handler.

    A good example taken from https://stackoverflow.com/a/9459679/6375269

    http://*:8080/: Receive all HTTP requests on port 8080 that are not already being handled by some other HttpListener.

    http://+:8080/: Receive all HTTP requests on port 8080 even if they're already handled by another HttpListener.

提交回复
热议问题