[英]Virtualhost Apache and Tomcat
I have Tomcat and Apache web server. 我有Tomcat和Apache Web服务器。 by MOD_JK I configure Apache to send request for http://127.0.0.1/cas
to Tomcat. 通过MOD_JK,我将Apache配置为向Tomcat发送对http://127.0.0.1/cas
请求。
http://127.0.0.1/cas
works correctly and Tomcat response to it. http://127.0.0.1/cas
正常工作,Tomcat对此做出了响应。
now I want this https ://127.0.0.1/cas
to work, (SSL). 现在,我希望此https ://127.0.0.1/cas
工作,(SSL)。
I search it and found that I need Virtualhost on Apache that send requests to Tomcat, my question is how can I create a SSL Virtualhost? 我搜索它,发现我需要在Apache上将请求发送到Tomcat的Virtualhost,我的问题是如何创建SSL Virtualhost?
and should I remove all configuration that I create before this for http://127.0.0.1/cas
? 是否应该删除在此之前为http://127.0.0.1/cas
创建的所有配置?
There's a lot of online examples for httpd SSL virtual host configuration. httpd SSL虚拟主机配置有很多在线示例。 Just specify something similar to the following, and put your mod_jk JKMount references inside of it. 只需指定与以下内容类似的内容,然后将您的mod_jk JKMount引用放入其中即可。
NameVirtualHost 192.168.100.10:443
<VirtualHost 192.168.100.100:443>
ServerName domain.com:443
UseCanonicalName Off
CustomLog /var/log/httpd/domain.log combined
ErrorLog /var/log/httpd/domain-error.log
SSLEngine on
SSLVerifyClient none
SSLCertificateFile /etc/httpd/conf/ssl.crt/domain.com.crt
SSLCertificateKeyFile /etc/httpd/conf/ssl.key/domain.com.key
SSLProxyEngine on
SetEnvIf User-Agent ".*MSIE.*" \
nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
</VirtualHost>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.