tomcat实例上有多个ssl端口

时间:2017-07-23 09:14:24

标签: tomcat

我需要为我的tomcat服务器上运行的两个Web应用程序设置两个ssl端口8443和9443。设置两个端口需要哪些配置详细信息?

1 个答案:

答案 0 :(得分:0)

Servicename="Catalina"Connectorport="8443"protocol="org.apache.coyote.http11.Http11NioProtocol"maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"  connectionTimeout="1000"
               keystoreFile="C:/Users/q841230/.keystore" keystorePass="hello1"
Engine name="Catalina" defaultHost="localhost"Host name="localhost"  appBase="webapps"unpackWARs="true" autoDeploy="true"HostEngineHost name="localhost"  appBase="webapps"unpackWARs="true" autoDeploy="true"EngineServiceService name="Catalina2"   
    Connector port="8085" protocol="HTTP/1.1"
               connectionTimeout="100"
               redirectPort="9443"   
    Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="8443"Connector port="9443" protocol="org.apache.coyote.http11.Http11NioProtocol" 
               maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS"  connectionTimeout="1000"
               keystoreFile="C:/Users/q841230/.keystore" keystorePass="hello1"Engine name="Catalina2" defaultHost="localhost">
      Host name="localhost"  appBase="webapps2"
        unpackWARs="true" autoDeploy="true"
      HostEngineConnector port="8009" protocol="AJP/1.3" redirectPort="9443"   
    Engine name="Catalina2" defaultHost="localhost" 
      Host name="localhost"  appBase="webapps2"
            unpackWARs="true" autoDeploy="true" HostEngineService