安裝目錄 D:\Program Files (x86)\apache-tomcat-10.0.27\cert
配置server.xml
首先,修改tomcat的端口8080為80,8443端口為443,修改後的文件配置為下:
<Connector port="80" Protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
修改配置文件
<Connector protocol="org.apache.coyote.http11.Http11NioProtocol"port="443" maxThreads="150" SSLEnabled="true">
<SSLHostConfig>
<Certificate certificateKeystoreFile="D:\Program Files (x86)\apache-tomcat-10.0.27\cert\sldmx_com.jks" certificateKeystorePassword="證書密碼" type="RSA" />
</SSLHostConfig>
</Connector>
,更多精彩资讯请关注tft每日頭條,我们将持续为您更新最新资讯!