无标题文档
wdCP系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdCDN系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
wdOS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用教程) wdDNS系统 (介绍,功能特性,运行环境,安装说明,演示,常见问题,使用手册)
注册 发贴 提问 回复-必看必看 wddns免费智能 DNS 开通 本地或虚拟机使 用wdcp 一键包在mysql编 译时"卡住"
【300G高防】双线 无视攻击 wdcp官方技术支持/服务 阿里云8折优惠券 无敌云 腾讯云优惠中,现注册更有260代金额券赠送
返回列表 发帖
提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等

温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的

[教程] WDCP 使用免费SSL 方法

本站经过多次尝试,可以使用SSL(https://www.dutuji.com)或者是普通访问(http://www.dutuji.com)

请各位大侠路过,这个博客为小白博客,禁不起风吹雨打(DDCC),请高抬贵手,民工在这里谢谢了

本站配置为腾讯云+centos +wdcp+ssl 标准的小白配置

先申请SSL https://www.dutuji.com/host/server/364.html  教程这里(中国沃通)

然后是VPS 配置

下载证书我就不说了。这里我用ssh ftp 登录。

然后在www/里面建立一个文件夹:ssl。

把证书上传,就是你看到的这个ssl 目录里面


下面用SSH 登录

进入目录 我的是N+A配置,所以我是进入N 目录。如果是A请自己找,

  • cd /www/wdlinux/nginx/conf/vhost

  • vi dutuji.com.conf(这个是我的网站配置。你找你自己的)

    打开后看到原文如下:

server {listen 80;server_name www.dutjji.com dutuji.com; #我是以本站作为例子,root /www/web/dutuji.com/public_html; index index.html index.php index.htm;error_page 400 /errpage/400.html;error_page 403 /errpage/403.html;error_page 404 /errpage/404.html;error_page 405 /errpage/405.html;location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fcgi.conf;}}

其实我们只需要简单增加两行就可以了

listen 443 ssl;#监听端口ssl_certificate /www/ssl/dutuji.com.crt; #证书ssl_certificate_key /root/dutuji.com.key;  #网站密匙

完整的代码:

server {listen 80;listen 443 ssl;server_name www.dutuji.com dutji.com ;ssl_certificate /www/ssl/dutji.com.crt;ssl_certificate_key /www/ssl/dutuji.com.key;root /www/web/dutuji.com/public_html;index index.html index.php index.htm;error_page 400 /errpage/400.html;error_page 403 /errpage/403.html;error_page 404 /errpage/404.html;error_page 405 /errpage/405.html;location ~ \.php$ {fastcgi_pass 127.0.0.1:9000;fastcgi_index index.php;include fcgi.conf;}}

这是配置好的图片,i 插入,复制粘贴,然后再ESC  +:wq 保存,

重启Nginx

命令:service nginxd restart



完毕,

返回列表