WDCPV3 panel mount SSL certificate Apache tutorial sub-station SSL configuration

Source: Internet
Author: User
Tags ssl certificate

This post was last edited by q1082121 on 2016-11-24 12:31

Scenario two Apache
1, the Apache type of SSL three files uploaded:/www/wdlinux//www/wdlinux/httpd-2.4.18//conf/below can!

Three files are root certificate, private key, public key, respectively


2,Open/www/wdlinux/httpd-2.2.24/conf/httpd.conf

Open
LoadModule Slotmem_shm_module modules/mod_slotmem_shm.so
LoadModule Ssl_module modules/mod_ssl.so
LoadModule Socache_shmcb_module modules/mod_socache_shmcb.so


Find #Include conf/extra/httpd-ssl.conf (delete the configuration statement at the beginning of the line comment symbol "#" Save exit)

3, enter the sub-station corresponding configuration file is Vhost folder XX.XXXX.com.conf and edit the file

Example configuration:

<virtualhost *:443>
DocumentRoot "/www/web/company_api/public_html/public"
ServerName api.tzsuteng.com
Errorlog "/www/wdlinux/httpd-2.4.18/logs/error_log"
Transferlog "/www/wdlinux/httpd-2.4.18/logs/access_log"
Sslengine on

(The server certificate public key is configured under this path);
Sslcertificatefile "/WWW/WDLINUX/HTTPD-2.4.18/CONF/WWW.TZSUTENG.COM_APACHE.CRT"
(The server certificate private key is configured under this path);
Sslcertificatekeyfile "/www/wdlinux/httpd-2.4.18/conf/tzsuteng.key"
(The root CA certificate is configured under this path);
Sslcertificatechainfile "/WWW/WDLINUX/HTTPD-2.4.18/CONF/SUTENGROOT.CRT"

<filesmatch "\. (cgi|shtml|phtml|php) $ ">
Ssloptions +stdenvvars
</FilesMatch>
<directory "/www/web/company_api" >
Ssloptions +stdenvvars
</Directory>
Browsermatch "MSIE [2-5]" \
Nokeepalive ssl-unclean-shutdown \
downgrade-1.0 force-response-1.0
Customlog "/www/wdlinux/httpd-2.4.18/logs/ssl_request_log" \
"%t%h%{ssl_protocol}x%{ssl_cipher}x \"%r\ "%b"
</VirtualHost>
And don't forget 443 ports on

WDCPV3 panel mount SSL certificate Apache tutorial sub-station SSL configuration

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.