服务器配置安全组后443 防火必须关闭 配置好sll 否则站长工具 443也是关闭 如Apache关闭 80也是关闭

打开 httpd.conf  

LoadModule ssl_module modules/mod_ssl.so 打开注释

LoadModule socache_shmcb_module modules/mod_socache_shmcb.so打开注释

Include conf/extra/httpd-ssl.conf打开注释

可以试试把原来配置 红色这一块删掉 加上下面一段

<VirtualHost _default_:443>

。。。。。。。。。。

</VirtualHost>

apache24 找到文件 httpd-ssl.conf 最后加上这一段,注意:如果网站内有引进网址没有带HTTPS的谷歌也会显示不安全

<VirtualHost _default_:443>

DocumentRoot "D:/phpweb/test.cn/"

ServerName test.com:443

ServerAdmin admin@example.com

ErrorLog "d:/wamp/Apache24/logs/test.cn_error.log"

TransferLog "d:/wamp/Apache24/logs/test.cn_access.log"

SSLEngine on

SSLCertificateFile "D:/phpweb/wwwtenghoocom.tenghoo.net.cn/ssl/2_test.com.crt"

SSLCertificateKeyFile "D:/phpweb/wwwtenghoocom.tenghoo.net.cn/ssl/3_test.com.key"

SSLCACertificateFile "D:/phpweb/wwwtenghoocom.tenghoo.net.cn/ssl/1_root_bundle.crt"

<FilesMatch "\.(cgi|shtml|phtml|php|html)$">

    SSLOptions +StdEnvVars

</FilesMatch>

<Directory "d:/wamp/Apache24/cgi-bin">

    SSLOptions +StdEnvVars

</Directory>

BrowserMatch "MSIE [2-5]" \

         nokeepalive ssl-unclean-shutdown \

         downgrade-1.0 force-response-1.0

CustomLog "D:/wamp/Apache24/logs/ssl_request.log" \

          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>

linux 配置  可以把原来的全部注释掉,加上这一段 安装路径和配置路径自己对应好就行

<VirtualHost _default_:443>

DocumentRoot "/var/www/www.test.com"

ServerName www.test.com:443

ErrorLog "/usr/local/apache2/logs/www.test.com_error.log"

TransferLog "/usr/local/apache2/logs/www.test.com_access.log"

SSLEngine on

SSLCertificateFile /var/www/www.test.com/ssl/2_www.test.com.crt

SSLCertificateKeyFile /var/www/www.test.com/ssl/3_www.test.com.key

SSLCACertificateFile /var/www/www.test.com/ssl/1_root_bundle.crt

<FilesMatch "\.(cgi|shtml|phtml|php|html)$">

    SSLOptions +StdEnvVars

</FilesMatch>

<Directory "/usr/local/apache2/cgi-bin">

    SSLOptions +StdEnvVars

</Directory>

BrowserMatch "MSIE [2-5]" \

         nokeepalive ssl-unclean-shutdown \

         downgrade-1.0 force-response-1.0

CustomLog "/usr/local/apache2/logs/ssl_request.log" \

          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"

</VirtualHost>


今日吐槽

让烦恼与风去远行;让痛苦陪云去流浪。哼一曲好歌,也许心情,就会轻松许多

Contact ME

TAG Link