阡陌博客 - ssl_conf
type: channel
link: https://www.kinmor.com/tag/ssl_conf/
items: Apache部署https letsencrypt vhost ssl

Apache部署https letsencrypt vhost ssl
type: item
date: 2018-03-14T11:41:00+08:00
description: 1-确保环境已经部署SSL模块//检查是否安装ssl httpd -M | grep ssl//安装mod和opensslyum install opensslyum install mod_ssl2-检查和启动sslcd /etc/httpd/conf.d/3-引入ssl配置，在http.conf去掉下面的注释Include conf/extra/httpd-ssl.conf4-虚拟vhost配置 DocumentRoot /home/www/wwwroot/zhibo ServerName zhibo.kinmor.com:443 SetEnv no-gzip SSLEngine on SSLCertificateFile "/etc/letsencrypt/live/kinmor.com/fullchain.pem" SSLCertificateKeyFile "/etc/letsencrypt/live/kinmor.com/privkey.pem" SetOutputFilter DEFLATE Options FollowSymLinks AllowOverride All Order Deny,Allow Require all granted DirectoryIndex index.php index.html index.htm 5-重启httpdservice httpd restart