Reputation: 10395
I have Tomcat and Apache web server. by MOD_JK I configure Apache to send request for http://127.0.0.1/cas
to Tomcat.
http://127.0.0.1/cas
works correctly and Tomcat response to it.
now I want this https://127.0.0.1/cas
to work, (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?
and should I remove all configuration that I create before this for http://127.0.0.1/cas
?
Upvotes: 0
Views: 1205
Reputation: 4850
There's a lot of online examples for httpd SSL virtual host configuration. Just specify something similar to the following, and put your mod_jk JKMount references inside of it.
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>
Upvotes: 1