概述
- PHP扩展及设置->PHP扩展->php_openssl
- edit myphp_wwwPHPTutorialApacheconfhttpd.conf.
uncomment 2 lines:
LoadModule ssl_module modules/mod_ssl.so
Include conf/extra/httpd-ssl.conf - edit myphp_wwwPHPTutorialApacheconfextrahttpd-ssl.conf
<VirtualHost :443>
DocumentRoot “D:myphp_wwwPHPTutorialWWWtestpublic”
ServerName www.test.cn
ErrorLog “D:/myphp_www/PHPTutorial/Apache/logs/error.log”
TransferLog “D:/myphp_www/PHPTutorial/Apache/logs/access.log”
SSLEngine on
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!3DES:!MD5:!ADH:!RC4:!DH:!DHE
SSLCertificateFile “D:/myphp_www/PHPTutorial/Apache/conf/sssl/www.test.cn.crt”
SSLCertificateKeyFile “D:/myphp_www/PHPTutorial/Apache/conf/sssl/www.test.cn.key”
SSLCertificateChainFile “D:/myphp_www/PHPTutorial/Apache/conf/sssl/issuer.crt”
<FilesMatch “.(cgi|shtml|phtml|php)$”>
SSLOptions +StdEnvVars
<Directory “D:myphp_wwwPHPTutorialWWWtestpublic”>
Options +Indexes +FollowSymLinks +ExecCGI
AllowOverride All
Order allow,deny
Allow from all
#Require all granted
Allow from all
BrowserMatch “.MSIE.”
nokeepalive ssl-unclean-shutdown
downgrade-1.0 force-response-1.0
CustomLog “D:/myphp_www/PHPTutorial/Apache/logs/ssl_request.log”
“%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x “%r” %b”
- create a site in PHPTool: name: www.test.cn(must be same as ServerName in httpd-ssl.conf), port: port number can be set to 80.
- set Echosite tunnels(https server name and port number must be same as the site created in PHPTool)
tunnels:
name1:
subdomain: “test”
proto:
http: www.test.cn:80
name2:
subdomain: “test”
proto:
https: www.test.cn:80
6. restart PHPTool
7. https://www.test.cn
最后
以上就是震动小懒虫为你收集整理的PHP工具箱配置SSL的全部内容,希望文章能够帮你解决PHP工具箱配置SSL所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复