配置多个https

2018-12-18  本文已影响0人  开发者快乐的一天
 <Service name="Catalina">
    <Connector port="80" protocol="HTTP/1.1"
               connectionTimeout="20000"
               redirectPort="443" />
               
    <Connector port="443" protocol="org.apache.coyote.http11.Http11Protocol" SSLEnabled="true" defaultSSLHostConfigName="cypz.yneusoft.com"  >
        <SSLHostConfig hostName="cypz.yneusoft.com">
            <Certificate certificateKeystoreFile="/usr/local/tomcat/apache-tomcat-8.0.45/conf/cert/cypz/cypz.pfx" certificateKeystorePassword="z8d48SeK" certificateKeystoreType="PKCS12" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2" 
    ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/>
        </SSLHostConfig>

        <SSLHostConfig hostName="cypzapi.yneusoft.com">
            <Certificate certificateKeystoreFile="/usr/local/tomcat/apache-tomcat-8.0.45/conf/cert/cypzapi/cypzapi.pfx" certificateKeystorePassword="eNCqzQzR" certificateKeystoreType="PKCS12" SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"  
    ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/>
        </SSLHostConfig>
    </Connector>
       
       <!--
    <Connector port="443"
    protocol="org.apache.coyote.http11.Http11Protocol"
    SSLEnabled="true"
    scheme="https"
    secure="true"
    keystoreFile="D:\tomcat8\conf\cert\1563244_cypz.yneusoft.com_tomcat\cypz.pfx"
    keystoreType="PKCS12"
    keystorePass="z8d48SeK"
    clientAuth="false"
    SSLProtocol="TLSv1+TLSv1.1+TLSv1.2"
    ciphers="TLS_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_256_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_256_CBC_SHA256"/>
       -->
    
    <Connector port="8009" protocol="AJP/1.3" redirectPort="443" />
    
        <Engine name="Catalina" defaultHost="cypz.yneusoft.com">

      <Realm className="org.apache.catalina.realm.LockOutRealm">
        <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm>

      <Host name="cypz.yneusoft.com"  appBase="cloudhrtweb"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="cypz_logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
      
      <Host name="cypzapi.yneusoft.com"  appBase="cloudhrtapi"
            unpackWARs="true" autoDeploy="true">

        <Valve className="org.apache.catalina.valves.AccessLogValve" directory="cypzapi_logs"
               prefix="localhost_access_log" suffix=".txt"
               pattern="%h %l %u %t &quot;%r&quot; %s %b" />

      </Host>
    </Engine>
    
  </Service>

   
  <Service name="Catalina">
上一篇下一篇

猜你喜欢

热点阅读