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