enabling SSL when Tomcat is interfaced by Apache web server using mod_jk

此生再无相见时 提交于 2020-01-03 20:04:19

问题


I have /usr/local/tomcat/webapps/cas, where my java app is running. after interfacing Tomcat and Apache web server(httpd) when I try http://192.168.0.117/cas I can see Login page, but when I try https://192.168.0.117/cas I got 404 not found from Apache web server not from Tomcat.

Not Found
The requested URL /cas was not found on this server.
Apache/2.2.3 (CentOS) Server at 192.168.0.117 Port 443


https://192.168.0.117/ that answered by Apache web server works well.

so I think the problem should solve by configuring Apache web server to forward some request to tomcat. there is some helps on internet but there isn't a step by step guideline.


回答1:


I guess you are using the Apache Tomcat Connector to connect Apache and Tomcat. Try to find the place in Apache where your SSL is configured, for example by a grep -R SSLEngine *. Then try to place the lines of the Apache Tomcat Connector configuration file /etc/apache2/mods-enabled/jk.load which are responsible for the connection that should be protected (say JkMount /idp worker1) inside the <VirtualHost> of the SSL configuration file. For Ubuntu or Debian, this may be the /etc/apache2/sites-available/default-ssl file.



来源:https://stackoverflow.com/questions/4695026/enabling-ssl-when-tomcat-is-interfaced-by-apache-web-server-using-mod-jk

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!