启用SSL当Tomcat由Apache Web服务器使用的mod_jk接口 [英] enabling SSL when Tomcat is interfaced by Apache web server using mod_jk
问题描述
我的/ usr /本地/ Tomcat的/ webapps /目录CAS
,那里有我的Java应用程序正在运行。
接口Tomcat和Apache Web服务器(httpd的)后,当我尝试 http://192.168.0.117/cas
我可以看到登录页面,但是当我试图 https://192.168.0.117/cas
我 404未找到
从Apache Web服务器不能从Tomcat。
未找到
请求的URL / CAS在此服务器上找到。
在192.168.0.117端口443
的Apache / 2.2.3(CentOS的)服务器
https://192.168.0.117/
的回答了Apache Web服务器运行良好。
所以我觉得这个问题应该通过配置Apache Web服务器转发一些要求tomcat的解决。
有一些帮助互联网上,但没有一步步的指导方针。
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.
推荐答案
我猜你正在使用的Apache Tomcat连接器连接Apache和Tomcat。试图寻找到你的SSL配置Apache中的地方,例如通过的grep -R的SSLEngine *
。然后尝试放置的Apache Tomcat连接器配置文件 /etc/apache2/mods-enabled/jk.load
这是负责的应受到保护的连接线(比如 JkMount / IDP worker1
)的&LT内部,SSL配置文件
;虚拟主机过夜。对于Ubuntu或Debian的,这可能是的/ etc / apache2的/网站的可用/默认SSL
文件。
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.
这篇关于启用SSL当Tomcat由Apache Web服务器使用的mod_jk接口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!