>我面临两个问题。
-
在URL中隐藏https端口:我的网站托管在这里 https://www.bhcds.com:8443/bham/#/login,我不想摆脱端口号。
-
重定向:当我输入 www.bhcds.com 时,它会重定向到IE和Safari中的url https://www.bhcds.com:8443/bham/#/login,但在Chrome和Firefox中,它停止第二次重定向。
这是我的 tomcat 服务器.xml配置片段。
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="8443" />
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS" keystoreFile="C:certificatexyz.jks" keystorePass="password"/>
你不能。您使用的是非标准端口,因此您必须在 URL 中包含该端口。如果从 url 中删除端口号,则浏览器将尝试连接到标准端口,即 443
。