- 论坛徽章:
- 0
|
本帖最后由 jiakon 于 2017-01-15 16:49 编辑
我按照官方提供的例子配置
http://tomcat.apache.org/migration-85.html#HTTP/2_support_added
- <div><div yne-bulb-block="paragraph" style="line-height: 1.75;"><span style="font-family: monospace; color: rgb(51, 51, 51);"><Connector port="8443"
- protocol="org.apache.coyote.http11.Http11AprProtocol"
- maxThreads="150"
- SSLEnabled="true"
- defaultSSLHostConfigName="openoffice.apache.org" >
- <SSLHostConfig hostName="openoffice.apache.org" >
- <Certificate certificateKeyFile="conf/openoffice.apache.org-rsa-key.pem"
- certificateFile="conf/openoffice.apache.org-rsa-cert.pem"
- type="RSA" />
- <Certificate certificateKeyFile="conf/openoffice.apache.org-ec-key.pem"
- certificateFile="conf/openoffice.apache.org-ec-cert.pem"
- type="EC" />
- </SSLHostConfig>
- <SSLHostConfig hostName="www.openoffice.org" >
- <Certificate certificateKeyFile="conf/www.openoffice.org-rsa-key.pem"
- certificateFile="conf/www.openoffice.org-rsa-cert.pem"
- type="RSA" />
- <Certificate certificateKeyFile="conf/www.openoffice.org-ec-key.pem"
- certificateFile="conf/www.openoffice.org-ec-cert.pem"
- type="EC" />
- </SSLHostConfig>
- </Connector></span></div></div><div yne-bulb-block="paragraph" style="line-height: 1.75;"></div>
复制代码
我按照这种方式配置,GET请求能正常响应,但POST请求会报错,报错类似如下:F-1 hostname 'abc.com' doesn't match either of '*.abc.net', 'abc.net'
|
|