多ssl
Tomcat配置
在这个例子中,我们将使用以下域名
[url]www.zzzz.com[/url] 111.111.111.111 web.zzzz.com 111.111.111.112
多个SSL主机,你需要多个IP地址或不同的端口号。
您需要创建不同的IP地址为80和443端口2连接器。 443容器,你需要指定的keystore细节
<Connector
Port = "80"
maxHttpHeaderSize = "8192"
maxThreads = "150"
minSpareThreads = "25"
maxSpareThreads = "75"
enableLookups = "false"
acceptCount = "100"
connectionTimeout = "20000"
Address = "111.111.111.111"
/>
<Connector
Port = "443" maxHttpHeaderSize = "8192"
maxThreads = "150"
minSpareThreads = "25"
maxSpareThreads = "75"
enableLookups = "false"
acceptCount = "100"
Program = "HTTPS"
Security = "TRUE"
clientAuth = "false"
sslProtocol = "TLS's"
Address = "111.111.111.111"
keyAlias = "Tomcat"
keystoreFile = "conf/ keystore.key"
keystorePass = "Tomcat"
/>
<Connector
Port = "80"
maxHttpHeaderSize = "8192"
maxThreads = "150"
minSpareThreads = "25"
maxSpareThreads = "75"
enableLookups = "false"
acceptCount = "100"
connectionTimeout = "20000"
Address = "111.111.111.112"
/>
<Connector
Port = "443" maxHttpHeaderSize = "8192"
maxThreads = "150"
minSpareThreads = "25"
maxSpareThreads = "75"
enableLookups = "false"
acceptCount = "100"
Program = "HTTPS"
Security = "TRUE"
clientAuth = "false"
sslProtocol = "TLS's"
Address = "111.111.111.112"
keyAlias = "Tomcat"
keystoreFile = "conf/keystore2.key"
keystorePass = "Tomcat"
/>
Then you need a host for each virtual host container
<Host
Name = "www.zzzz.com"
appBase = "webapps in"
unpackWARs = "true"
The autodeploy = "true"
xmlValidation = "false"
xmlNamespaceAware = "false">
</ HOST>
<Host
Name = "web.zzzz.comt"
appBase = "webapps in"
unpackWARs = "true"
The autodeploy = "true"
xmlValidation = "false"
xmlNamespaceAware = "false">
</ HOST>