Ubuntu7.1server builds a jsp/php/rails all-around WEB production environment from scratch (6)-PHP source code

Source: Internet
Author: User
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"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.