Windows下Apache配置https
LoadModule ssl_module modules/mod_ssl.so 去掉前面#号 其他需要开启的 根据错误提示逐个开启
3、http-vhost.conf 加入配置
#原始配置 可以保留 listen 80 <VirtualHost *:80> DocumentRoot "D:/website/seo/public" ServerName 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 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>
4、重启Apache
Windows下Apache配置https
温馨提示: 本文由杰米博客推荐,转载请保留链接: https://www.jmwww.net/file/10299.html