httpd.conf开启了
LoadModule socache_shmcb_module modules/mod_socache_shmcb.so LoadModule ssl_module modules/mod_ssl.so Include conf/extra/httpd-ssl.conf httpd-ssl中新添加了如下配置 <VirtualHost love.fwhf.xyz:443> DocumentRoot "C:/wamp64/bin/apache/apache2.4.27/htdocs" ServerName love.fwhf.xyz:443 ErrorLog "C:/wamp64/bin/apache/apache2.4.27/logs/error.log" TransferLog "C:/wamp64/bin/apache/apache2.4.27/logs/access.log" SSLEngine on SSLCertificateFile "C:/wamp64/bin/apache/apache2.4.27/cert/public1.crt" SSLCertificateKeyFile "C:/wamp64/bin/apache/apache2.4.27/cert/love1.key" SSLCACertificateFile "C:/wamp64/bin/apache/apache2.4.27/cert/chain1.crt" <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory "C:/wamp64/bin/apache/apache2.4.27/htdocs"> #SSLOptions +StdEnvVars Options FollowSymLinks AllowOverride All Order allow,deny Allow from all </Directory> BrowserMatch "MSIE [2-5]" \ nokeepalive ssl-unclean-shutdown \ downgrade-1.0 force-response-1.0 CustomLog "C:/wamp64/bin/apache/apache2.4.27/logs/ssl_request.log" \ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b" </VirtualHost> 然后通过外网访问https://love.fwhf.xyz显示此网站无法提供安全连接,有木有大佬知道这是什么原因啊,困扰了两天了 |
|
沙发#
发布于:2019-03-20 21:22
右键看看浏览器显示的网页代码是不是有http的连接,https站点必须全部为https连接,否则就会提示不安全。
|
|