操作系统: Aliyun Linux 5.7 64位地域: 美西 1
域名:gift为后缀的域名
无备案
根据阿里云视频课程<零基础实现在阿里云ECS上建立WordPress站点>进行安装
视频课程地址:
https://www.aliyun.com/support/video/list?spm=5176.7972478.234816.5.HNLPTW
然后根据<Nginx绑定多个域名的方法>中第一个方法进行域名的绑定
网址:
https://help.aliyun.com/knowledge_detail/6671603.html?spm=5176.100241.yqaskinfo1.3.48egXx
对其中的一些地方进行了修改,然后重启
修改1:
教程的配置文件存放目录为: /usr/local/nginx/conf/servers
我的配置文件存放目录为: /alidata/server/nginx-1.4.4/conf/vhosts
修改2:
教程的网站根目录: root /home/www/server***.com;
我的网站根目录: alidata/www/server***.com;
然后用IP进行访问,访问正常,如下图
然后用网址进行访问,访问结果如图
-------------------------
-------------------------
include location.conf;
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。