gpt4 book ai didi

url - 从 url 中删除端口号

转载 作者:行者123 更新时间:2023-11-28 23:07:56 24 4
gpt4 key购买 nike

我在一台机器上有两个 tomcat 实例,两个实例都接受安全请求。认为:一个连接器端口配置为 8080,重定向端口为 443。另一个连接器端口配置为 8083,重定向端口 444。因此,如果第一个 tomcat 接收请求为

http://localhost:8080/abc/index.html

然后重定向到https://localhost/abc/index.html

如果第二个 tomcat 收到请求为

http://localhost:8083/abc/index.html

然后重定向到https://localhost:444/abc/index.html

现在我的问题是我想从 url 中删除端口号 444。有什么办法可以删除或隐藏它。我不能为这两个实例使用相同的端口号 443。

谢谢

最佳答案

不,你不能那样做。如果您未指定端口,Web 浏览器将仅连接到 HTTPS 端口 443。

关于url - 从 url 中删除端口号,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5112771/

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