Ec (2); as a production environment, it is often necessary to use SSL to support the https protocol, which mainly increases SSL support for Apache. 6. Configure apache to support ssl: 1. Modify the Apache configuration file viusrlocalapacheconfhttpd. conf to ensure that the two rows are not commented: loadmodulessl_modulemodulesmod_ssl.sow.deconfextr script ec (2); script
As a production environment, you often need to use SSL to support the https protocol. This section mainly adds SSL support for Apache.
6. Configure apache to support ssl:
1. Modify the Apache configuration file:
Vi/usr/local/apache/conf/httpd. conf
Make sure that the two rows are not commented out:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
Configure another virtual host (which can be set to xxx.dingl.com Based on the purchased SSL Certificate ):
ServerName www.dingl.com
DocumentRoot/home/dingl/jsp-web
ResinConfigServer localhost 6800.
AddHandler caucho-request jsp
AddHandler caucho-request xtp
AddHandler caucho-request vm
2. Modify the ssl configuration file:
Vi/usr/local/apache/conf/extra/httpd-ssl.conf
Change dingl.com to the following format:
Listen 443.
AddType application/x-x509-ca-cert. crt
AddType applications/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
##
# 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"