libo 发表于 2018-5-22 13:35:08

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

priess1314 发表于 2018-5-22 15:15:01

回帖拿金币!
页: [1]
查看完整版本: apache配置https