As a production environment, SSL is often required to support the HTTPS protocol, which is primarily to increase SSL support for Apache.
Vi. configuring Apache to support SSL:
1, modify the Apache configuration file:
Vi/usr/local/apache/conf/httpd.conf
Make sure both sides of this line are not commented:
LoadModule Ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
Then configure a virtual host (configurable as xxx.dingl.com, based on the purchased SSL certificate settings):
<virtualhost *:80>
ServerName www.dingl.com
Documentroot/home/dingl/jsp-web
Resinconfigserver localhost 6800
AddHandler Caucho-request JSP
AddHandler caucho-request XTP
AddHandler caucho-request VM
</VirtualHost>
2, modify the SSL configuration file:
vi/usr/local/apache/conf/extra/httpd-ssl.conf
dingl.com modified into the following form:
Listen 443
AddType Application/x-x509-ca-cert. CRT
AddType application/x-pkcs7-crl. CRL
Sslpassphrasedialog Builtin
Sslsessioncache "Shmcb:/usr/local/apache/logs/ssl_scache (512000)"
Sslsessioncachetimeout 300
Sslmutex "File:/usr/local/apache/logs/ssl_mutex"
##
# # SSL Virtual Host Context
##
<virtualhost _default_:443>
# General setup for the virtual host
DocumentRoot "/home/dingl/jsp-web"
ServerName www.dingl.com:443
ServerAdmin you@example.com
ErrorLog "/usr/local/apache/logs/error_log"
Transferlog "/usr/local/apache/logs/access_log"
# SSL Engine Switch:
# enable/disable SSL for this virtual host.
Sslengine on
Sslciphersuite all:! Adh:! Export56:rc4+rsa:+high:+medium:+low:+sslv2:+exp:+enull
Sslcertificatefile "/USR/LOCAL/APACHE/CONF/DINGL.COM.CRT"
#SSLCertificateFile "/USR/LOCAL/APACHE/CONF/SERVER-DSA.CRT"
Sslcertificatekeyfile "/usr/local/apache/conf/dingl.com.key"