标签:配置网站 master tps web div serve www. medium mon
1.将cert下新建一个文件将所有证书文件放在新建的文件下
例如:cert/medcard
2.配置网站的.conf文件
<VirtualHost *:443> ServerName www.medivisitor.com DocumentRoot /var/www/medivisitor/dist #index文件的根路径 SSLEngine on SSLProtocol all -SSLv2 SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA SSLCertificateFile cert/medcard/public.pem SSLCertificateKeyFile cert/medcard/214540100910037.key SSLCertificateChainFile cert/medcard/chain.pem Header always set Strict-Transport-Security "max-age=63072000; includeSubdomains; preload" ErrorLog logs/picard.jiaofukeyan.com-error_log CustomLog logs/picard.jiaofukeyan.com-access_log common </VirtualHost> <VirtualHost *:80> ServerName www.medivisitor.com #网站打开的地址 ServerAdmin webmaster@localhost DocumentRoot /var/www/medivisitor #index文件的根路径 Errorlog logs/medivisitor.error.log #日志 customLog logs/medivisitor.access.log combine
#配置80端口转发到443端口
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L,R]
</VirtualHost>
标签:配置网站 master tps web div serve www. medium mon
原文地址:https://www.cnblogs.com/detanx/p/SSL.html