apache https配置
修改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>
扫描公众号,关注更多信息
---------------------------------------------------------------------------------我是分割线--------------------------------------------------------------------------to be a better me, talk is cheap show me the code
版权所有,转载请注明原文链接。
文中有不妥或者错误的地方还望指出,以免误人子弟。如果觉得本文对你有所帮助不妨【推荐】一下!如果你有更好的建议,可以给我留言讨论,共同进步!
再次感谢您耐心的读完本篇文章。
----------------------------------------------------------------------------------------------------------------------------------------------------------------------