如何设置PHPStudy中的Apache服务器支持HTTPS?

更新于
2026-09-24 19:42:33
1阅读来源: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

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端口

如何设置PHPStudy中的Apache服务器支持HTTPS?

本文共计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

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端口

如何设置PHPStudy中的Apache服务器支持HTTPS?