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 admin@example.com
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:wampbinapacheapache2.4.9bin
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;
}
}
}
最后
以上就是爱笑乌龟最近收集整理的关于wamp+阿里云+httpswamp+阿里云+https的全部内容,更多相关wamp+阿里云+httpswamp+阿里云+https内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复