apache配置https
一:安装ssl模块yum -y install mod_ssl
二:编辑ssl配置文件
vi /etc/httpd/conf.d/ssl.conf
# line 59: uncomment
DocumentRoot "/var/www/html"
# line 60: uncomment and specify the server name
ServerName www.srv.world:443
SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2
# 填写下载的crt
SSLCertificateFile /etc/pki/tls/certs/server.crt
# 填写下载的key
SSLCertificateKeyFile /etc/pki/tls/certs/server.key
三:重启Apache
systemctl restart httpd
回帖拿金币!
页:
[1]