maxThreads="150" SSLEnabled="true">
certificateKeystoreType="PKCS12" certificateKeystorePassword="xxx" />
最近在配置阿里云服务器走到了ssl证书这一步,深陷坑中跳不出
这是我tomcat8 server.xml里面的配置(证书和密码隐蔽了),433端口也开 8433端口也开了
但是启动tomcat之后一直用https访问不了tomcat的首页,http就可以正常跳出。
有没有大牛相同经历,救我于水深火热之中。感激不尽!!!!
http://blog.csdn.net/zzp961224/article/details/78934310
http://blog.csdn.net/zzp961224/article/details/78934310
maxThreads="150" SSLEnabled="true">
certificateKeystoreType="PKCS12" certificateKeystorePassword="xxx" />
以上问题请回QQ123652469
请使用CertBot, 解决你的全部麻烦。且不花钱。
一般来说, 只需要在nginx上配置https, tomcat还是走http这样效率高且灵活。
nginx上用proxy, 加上
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
tomcat在server.xml的<Host>
配置项里加上
<Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" protocolHeaderHttpsValue="https"/>
看一下错误提示有没有域名跳转错误之类的提示信息,如果是的话调整域名即可;
如果不是的话那就是:
tomcat在server.xml的配置项里加上
<Valve className="org.apache.catalina.valves.RemoteIpValve" remoteIpHeader="X-Forwarded-For" protocolHeader="X-Forwarded-Proto" protocolHeaderHttpsValue="https"/>
nginx上配置https ,http://blog.csdn.net/zzp961224/article/details/78934310