VPS侦探论坛

 找回密码
 注册
查看: 4382|回复: 1

添加域名后访问到的仍是默认安装成功页面

[复制链接]
发表于 2016-2-9 11:03:34 | 显示全部楼层 |阅读模式

已经添加了域名,但访问到的仍然是默认页面。conf文件
  1. server
  2.     {
  3.         listen 80;
  4.         #listen [::]:80;
  5.         server_name www.wuschen.com m.wuschen.com wuschen.com;
  6.         index index.html index.htm index.php default.html default.htm default.php;
  7.         root  /home/wwwroot/www.wuschen.com;

  8.         include discuz.conf;
  9.         #error_page   404   /404.html;
  10.         location ~ [^/]\.php(/|$)
  11.         {
  12.             # comment try_files $uri =404; to enable pathinfo
  13.             try_files $uri =404;
  14.             fastcgi_pass  unix:/tmp/php-cgi.sock;
  15.             fastcgi_index index.php;
  16.             include fastcgi.conf;
  17.             #include pathinfo.conf;
  18.         }

  19.         location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
  20.         {
  21.             expires      30d;
  22.         }

  23.         location ~ .*\.(js|css)?$
  24.         {
  25.             expires      12h;
  26.         }

  27.         access_log  /home/wwwlogs/www.wuschen.com.log  access;
  28.     }
复制代码
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-2-10 17:01:48 | 显示全部楼层


有可能其他配置文件有错误没生效或没重启nginx
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|Archiver|VPS侦探 ( 鲁ICP备16040043号-1 )

GMT+8, 2024-4-20 10:20 , Processed in 0.025614 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表