wamp+阿里云+https

wamp+阿里云+https

进入案例云控制后台
详情
http://www.chinaz.com/web/2017/0105/639110.shtml

具体配置
1,先按阿里云相关ssh 相关配置 进行调试
2,在httpd-ssh.conf中 修改成如下配置

DocumentRoot “E:/wamp/www/heart”
ServerName heart.ocmcom.com:443
ServerAdmin [email protected]
ErrorLog “E:/wamp/logs/error.log”
TransferLog “E:/wamp/logs/access.log”

3.httpd.conf
Include conf/extra/httpd-mpm.conf 开启此项

4,命令行启动 apache 调试配置
cd E:\wamp\bin\apache\apache2.4.9\bin
httpd.exe -k install
httpd.exe -k start
检查是否报错
如果没有报错 则运行
httpd.exe -k stop


nginx

server {
    listen       443;   
    server_name  xxx.com;

    ssl          on;    
    ssl_certificate  /etc/nginx/ssl/214210061110985.pem;
    ssl_certificate_key  /etc/nginx/ssl/214210061110985.key;
    ssl_session_timeout  5m;

    charset utf-8;
    access_log  /var/log/nginx/log/xxx.access.log  main;

    location / {      
        root   /etc/nginx/www/xxx;
        index  index.php index.html index.htm;
        if (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?s=/$1  last;
                break;
            }       
    }


    error_page   500 502 503 504  /50x.html;
    location = /50x.html {
        root   /etc/nginx/www/xxx;
    }

    location ~ \.php$ {
        root   /etc/nginx/www/xxx;
        fastcgi_intercept_errors on;
        fastcgi_pass   127.0.0.1:9000;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;      
        if (!-e $request_filename) {
                rewrite  ^(.*)$  /index.php?s=/$1  last;
                break;
            }   
   }

}

你可能感兴趣的:(php)