coffee_cn

博客园 首页 新随笔 联系 订阅 管理

httpd.conf

<VirtualHost *:80>
ServerName www.abc.cn
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*) https://%{SERVER_NAME}$1 [L,R]
</VirtualHost>

ssl.conf

<VirtualHost *:443>
    ServerName www.abc.cn
    ProxyPreserveHost on
    ProxyPass / http://127.0.0.1:8080/
    ProxyPassReverse / http://127.0.0.1:8080/
    ErrorLog "logs/abc.cn-ssl-error.log"
    CustomLog "logs/abc.cn-ssl-access.log" common
    SSLEngine on
    SSLProtocol all -SSLv2 -SSLv3
    SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
    SSLHonorCipherOrder on
    SSLCertificateFile cert/abc.cn.pem
    SSLCertificateKeyFile cert/abc.cn.key
    SSLCertificateChainFile cert/abc.cn_chain.crt
</VirtualHost>

 

posted on 2020-04-22 12:51  coffee  阅读(925)  评论(0编辑  收藏  举报