刚准备给tomcat 配https玩玩,
用jdk生产了证书
keytool -v -genkey -alias tomcat -keyalg RSA -keystore d:/tomcat.keystore”
然后 servlet.xml 配置(tomcat 7)
<Connector port="8443" protocol="org.apache.coyote.http11.Http11Protocol"
maxThreads="150" SSLEnabled="true" scheme="https" secure="true"
clientAuth="false" sslProtocol="TLS"
keystoreFile="d:/tomcat.keystore" keystorePass="123456" />
启动tomcat ---->>正常
访问 http://localhost:8080/---->正常
访问 https://localhost:8080/ -->>tomcat日志看到
信息: Error parsing HTTP request header
Note: further occurrences of HTTP header parsing errors will be logged at DEBUG level.
百度了下说什么 缓存不够,按照该也不行,,,只能来 万能的 nutz.cn了!! 看看是什么问题! 3Q