更新时间:2023-12-02 15:13:58
最简单的方法是更改每个网站上的端口绑定。这需要最少的配置,你可以在任何你想要的端口上放置一个网站(我建议端口超过1024 ...最多65000)
the easiest way to do this is to change the port binding on each website. This takes minimal configuration and you can place a website on any port you want (I recommend ports over 1024...to a maximum of 65000)
例如,你的默认站点将自动在端口80上。将站点2放在端口2000上。然后您可以像上面一样访问您的默认站点,并且您可以使用类似的URL访问站点2,如 http://192.168。 2.1:2000 / mySubSite / index.html中
。请注意,端口是在URL中使用末尾的[port]指定的。
For example, your default site will automatically be on port 80. Place site 2 on Port 2000. Then you can access your default site like you have above, and you can access site 2 with a similar url like http://192.168.2.1:2000/mySubSite/index.html
. Notice the port is specified in the url using the :[port] at the end.