开发者社区> 问答> 正文

网站首页一直显示welcome to nginx

各位好:   我使用的是 Ubuntu 12x+32位 系统 安装 的是mysql+nginx,在/srv/ghost/目录下安装的 ghost 博客 (基于nodejs+express),然而不管怎么 配置 ,首页都是显示的是welcome to nginx  我在 /etc/nginx/sites-available/ghost.conf中填写的内容如下: server {       listen 80;       server_name tilear.我的网址cn;         location / {         proxy_set_header   X-Real-IP $remote_addr;         proxy_set_header   Host      $http_host;        proxy_pass h*t*t*p://127*0*0*1:2368;        } } 网站 也是按照(3个w加上ghostchina加上com)括号中内容加上/install-ghost-on-ali-ecs-forth-step-install-ghost/的 教程 配置的,然而不知道为啥首页一直是welcome to nginx  

展开
收起
coderhi 2015-11-14 22:41:46 27592 0
3 条回答
写回答
取消 提交回答
  • 楼上大神
    2015-11-15 18:26:14
    赞同 展开评论 打赏
  • 修改完配置信息后,输入service nginx restart使配置生效
    2015-11-15 17:20:39
    赞同 展开评论 打赏
  • 你打开你的网站 加上 2368 端口 看看可以访问不
    2015-11-15 11:35:29
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
《Nginx 代理系统常用手册》 立即下载
CentOS Nginx PHP JAVA 多语言镜像使用手 立即下载
CentOS Nginx PHP JAVA多语言镜像使用手册 立即下载