如何将PHPStudy Apache配置改为支持HTTPS?

2026-04-03 05:301阅读0评论SEO资讯
  • 内容介绍
  • 文章标签
  • 相关推荐

本文共计164个文字,预计阅读时间需要1分钟。

如何将PHPStudy Apache配置改为支持HTTPS?

配置文件片段:Listen 443DocumentRoot D:/phpStudy/WWW/wxServerName www.example.com:443ServerAdmin sdkz_applet@163.comSSLEngine onSSLProtocol all -SSLv2 -SSLv3SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:HIGH:MEDIUM:LOW:SSLv2:EXP:eNULL

如何将PHPStudy Apache配置改为支持HTTPS?

httpd-ssl.conf

Listen 443 DocumentRoot "D:/phpStudy/WWW/wx" ServerName www.example.com:443 ServerAdmin sdkz_applet@163.com SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLHonorCipherOrder on SSLCertificateFile "D:/phpStudy/Apache/conf/ssl/www_example_com.crt" SSLCertificateKeyFile "D:/phpStudy/Apache/conf/ssl/www_example_com.key" SSLCertificateChainFile "D:/phpStudy/Apache/conf/ssl/www_example_com__bundle.crt" Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order Allow,Deny Allow From All Require all granted read

先去申请ssl证书,申请下来放到服务器上,配置好即可。需要注意的是防火墙,443端口

本文共计164个文字,预计阅读时间需要1分钟。

如何将PHPStudy Apache配置改为支持HTTPS?

配置文件片段:Listen 443DocumentRoot D:/phpStudy/WWW/wxServerName www.example.com:443ServerAdmin sdkz_applet@163.comSSLEngine onSSLProtocol all -SSLv2 -SSLv3SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:HIGH:MEDIUM:LOW:SSLv2:EXP:eNULL

如何将PHPStudy Apache配置改为支持HTTPS?

httpd-ssl.conf

Listen 443 DocumentRoot "D:/phpStudy/WWW/wx" ServerName www.example.com:443 ServerAdmin sdkz_applet@163.com SSLEngine on SSLProtocol all -SSLv2 -SSLv3 SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL SSLHonorCipherOrder on SSLCertificateFile "D:/phpStudy/Apache/conf/ssl/www_example_com.crt" SSLCertificateKeyFile "D:/phpStudy/Apache/conf/ssl/www_example_com.key" SSLCertificateChainFile "D:/phpStudy/Apache/conf/ssl/www_example_com__bundle.crt" Options -Indexes +FollowSymLinks +ExecCGI AllowOverride All Order Allow,Deny Allow From All Require all granted read

先去申请ssl证书,申请下来放到服务器上,配置好即可。需要注意的是防火墙,443端口