Windows下Apache配置https
2021-03-21 11:23
标签:xpl 文件复制 test div com mamicode https配置 根据 err Windows下Apache配置https 标签:xpl 文件复制 test div com mamicode https配置 根据 err 原文地址:https://www.cnblogs.com/guliang/p/11820550.htmlLoadModule ssl_module modules/mod_ssl.so 去掉前面#号 其他需要开启的 根据错误提示逐个开启
#原始配置 可以保留
listen 80
VirtualHost *:80>
DocumentRoot "D:/website/seo/public"
ServerName www.test.com
DirectoryIndex index.php index.html
Directory "D:/website/seo/public">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Directory>
CustomLog "logs/test.log" combined
VirtualHost>
#https配置
listen 443
VirtualHost *:443>
DocumentRoot "D:/website/seo/public"
ServerName www.test.com
SSLEngine on
SSLCertificateFile mycert.crt
SSLCertificateKeyFile mycert.key
DirectoryIndex index.php index.html
Directory "D:/website/seo/public">
Options FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
Directory>
CustomLog "logs/test.log" combined
VirtualHost>
文章标题:Windows下Apache配置https
文章链接:http://soscw.com/index.php/essay/67143.html