一、腾讯云的window server 2008服务器配置phpstudy

环境:window server  2008;

软件:phpstudy 2016;

前提:1、域名解析到你的服务器;

           2、域名申请了SSL证书,并且下载到电脑下;

           3、你服务器的安全组规则,入站规则放通80端口,443端口;

下载安装的过程就不说了,点下一步就好。

1、安装好后,把php_openssl打上勾;

Windows server 2008配置phpstudy

2、打开httd-conf配置文件,找到

#LoadModule ssl_module modules/mod_ssl.so (如果找不到请确认是否编译过 openssl 插件)

#Include conf/extra/httpd-ssl.conf  

去掉  #   ;

Windows server 2008配置phpstudy
3、C:\phpstudy\Apache\conf\,下新建cert文件夹,把下载下来的SSL证书放到这个文件夹里(根据你的安装目录定);

Windows server 2008配置phpstudy

4、找到C:\phpstudy\Apache\conf\extra下的httpd-ssl添加如下的语句(根据你的安装目录定):

<VirtualHost *:443>
    DocumentRoot "C:\phpstudy\WWW"   //存放目录


    ServerName www.xxx.com   //你的域名

 
    ServerAlias xxx.com           //二级域名
    <Directory "C:\phpstudy\WWW">       
        Options FollowSymLinks ExecCGI
        AllowOverride All
        Order allow,deny
        Allow from all
        Require all granted
    </Directory>
    SSLEngine on
    //配置你的证书路径
    SSLCertificateFile "C:\phpstudy\Apache\conf\cert\2_xxx.crt"              
   
    SSLCertificateKeyFile "C:\phpstudy\Apache\conf\cert\3_xxx.key"      
   
    SSLCertificateChainFile "C:\phpstudy\Apache\conf\cert\1_xxx.crt"        
</VirtualHost>
Windows server 2008配置phpstudy

 

  参考博客:   https://blog.csdn.net/wolegequ1993/article/details/76273483

小程序手机预览请求不到数据显示网络异常,在开发工具可以预览到服务请求的数据的解决办法

  参考博客:https://blog.csdn.net/m0_38121097/article/details/82932083

相关文章: