赞
踩
yum install openssl openssl-devel httpd-devel
配置文件路径:/etc/httpd/conf
yum install mod_ssl openssl
安装完毕后,会自动生成 /etc/httpd/conf.d/ssl.conf 文件
RewriteEngine on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^/?(.*)$ https://%{SERVER_NAME}/$1 [L,R]
DocumentRoot "网站路径"
ServerName https://域名:443/
SSLCertificateFile 证书.crt
SSLCertificateKeyFile 证书.key
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。