码迷,mamicode.com
首页 > Web开发 > 详细

apache https

时间:2016-06-13 20:40:18      阅读:230      评论:0      收藏:0      [点我收藏+]

标签:

修改httpd.conf

  • 添加端口监听
Listen 443
  • 添加https处理类库
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf
#去掉上面两行前的"#"
  • 虚拟主机配置
<VirtualHost *:443>
DocumentRoot "D:\phpStudy\WWW"
ServerName wwlsz.cn

SSLEngine on
SSLCertificateFile "D:\webSslKey\2_wwxx.cn.crt"
SSLCertificateKeyFile "D:\webSslKey\3_wwxx.cn.key"
#SSLCertificateChainFile "D:\webSslKey\1_root_bundle.crt"
</VirtualHost>
#<Directory "D:\phpStudy\WWW"/>
#    Options Indexes FollowSymLinks Includes ExecCGI
#    AllowOverride All
#    Order allow,deny
#    Allow from all
#    Require all granted
#</Directory>

 

apache https

标签:

原文地址:http://www.cnblogs.com/rwxwsblog/p/5565662.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!