tomcat缁戝畾涓や釜https鍩熷悕
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了tomcat缁戝畾涓や釜https鍩熷悕相关的知识,希望对你有一定的参考价值。
鏍囩锛?a href='http://www.mamicode.com/so/1/timeout' title='timeout'>timeout max text access http efi pac fine apach
閰嶇疆server.xml鏂囦欢鍩熷悕璁块棶鍏堜慨鏀规垚80绔彛锛岀劧鍚庢槸redirectPort涓?43
<Connector port="80" protocol="HTTP/1.1"
connectionTimeout="20000"
redirectPort="443" />
閰嶇疆SSL璇佷功
<Connector port="443" protocol="org.apache.coyote.http11.Http11NioProtocol"
maxThreads="150" SSLEnabled="true" URIEncoding="UTF-8" defaultSSLHostConfigName="www.xxxx.com">
<!--閰嶇疆璇佷功璺緞锛屽瘑鐮?->
<SSLHostConfig hostName="www.xxxx1.com" caCertificateFile="cert/www.xxxx.com.pem">
<Certificate certificateKeystoreFile="cert/www.xxxx1.com.pfx"
certificateKeystoreType="PKCS12" certificateKeystorePassword="***" />
</SSLHostConfig>
<SSLHostConfig hostName="www.xxx2.com" caCertificateFile="cert/www.xxxx2.com.pem">
<Certificate certificateKeystoreFile="cert/www.xxxx2.com.pfx"
certificateKeystoreType="PKCS12" certificateKeystorePassword="***" />
</SSLHostConfig>
</Connector>
淇敼redirectPort涓?43
<!-- Define an AJP 1.3 Connector on port 8009 -->
<Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
涓€涓」鐩搴斿涓煙鍚?/p>
<Host name="www.xxxx1.com" appBase="webapps" unpackWARs="false"
autoDeploy="true" defaultHost="www.xxxx1.com">
<!--澶氫釜鍩熷悕鍒悕-->
<Alias>www.xxx1.com</Alias>
<Alias>www.xxxx2.com</Alias>
<!--榛樿椤圭洰璁块棶璺緞-->
<Context path="" docBase="椤圭洰鍦板潃" reloadable="false" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
澶氫釜椤圭洰闇€瑕侀厤缃涓猦ost锛屽叾涓渶瑕佹敞鎰忔瘡涓猦ost涓嬮粯璁ら」鐩闂矾寰?/p>
<Engine name="Catalina" defaultHost="www.xxxxx1.com">
<Host name="xxxxx1.com" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<!--榛樿椤圭洰璁块棶璺緞-->
<Context path="" docBase="椤圭洰鍦板潃" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
<Host name="www.xxxxxx2.com" appBase="椤圭洰鍦板潃"
unpackWARs="true" autoDeploy="true">
<!--榛樿椤圭洰璁块棶璺緞-->
<Context path="" docBase="project2" reloadable="true" />
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
pattern="%h %l %u %t "%r" %s %b" />
</Host>
</Engine>
以上是关于tomcat缁戝畾涓や釜https鍩熷悕的主要内容,如果未能解决你的问题,请参考以下文章