记录日常工作关于系统运维,虚拟化云计算,数据库,网络安全等各方面问题。

phpstudy2018 apache2+php5.4+mysql 配置ssl/https访问web

打开httpd-ssl.conf ,修改配置内容如下。


Listen 443
 
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4
 
SSLProxyCipherSuite HIGH:MEDIUM:!MD5:!RC4
 
SSLHonorCipherOrder on
 
SSLProtocol TLSv1 +TLSv1.1 +TLSv1.2
 
SSLProxyProtocol all -SSLv3

#SSLPassPhraseDialog  builtin
 
#SSLSessionCache  dbm:d:D:\phpStudy2018\PHPTutorial\Apache\logs\ssl_scache"
 
#SSLSessionCache "shmcb:D:\phpStudy2018\PHPTutorial\Apache\logs\ssl_scache(512000)"
 
SSLSessionCacheTimeout  300
 
<VirtualHost _default_:443>
 
DocumentRoot "D:\92cto\public_html"
ServerName www.92cto.com:443
ServerAlias 92cto.com:443
#ServerAdmin admin@tryservice.*******.com
ErrorLog "D:\phpStudy2018\PHPTutorial\Apache\logs\92cto_error.log"
TransferLog "D:\phpStudy2018\PHPTutorial\Apache\logs\92cto_access.log"
 
SSLEngine on
 
SSLCertificateFile "D:\phpStudy2018\PHPTutorial\Apache\conf\ssl\2894418_www.92cto.com_public.crt"
SSLCertificateKeyFile "D:\phpStudy2018\PHPTutorial\Apache\conf\ssl\2894418_www.92cto.com.key"
SSLCertificateChainFile "D:\phpStudy2018\PHPTutorial\Apache\conf\ssl\2894418_www.92cto.com_chain.crt"
 
<FilesMatch "\.(cgi|shtml|phtml|php)$">
    SSLOptions +StdEnvVars
</FilesMatch>
##
<Directory "D:\phpStudy2018\PHPTutorial\Apache\cgi-bin">
    SSLOptions +StdEnvVars
</Directory>
##
 
BrowserMatch "MSIE [2-5]" \
         nokeepalive ssl-unclean-shutdown \
         downgrade-1.0 force-response-1.0
 
CustomLog "D:\phpStudy2018\PHPTutorial\Apache\logs\ssl_request.log" \
          "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
 
</VirtualHost>                                




转载请标明出处【phpstudy2018 apache2+php5.4+mysql 配置ssl/https访问web】。

《www.92cto.com》 虚拟化云计算,系统运维,安全技术服务.

网站已经关闭评论