网站显示404 not found nginx?

Website shows 404 not found nginx?

最近我将我的网站和域名从 1and1 转移到了 inmotionhosting。当我尝试访问我的网站时 (www.wapgee.com)。它显示此错误:

有人遇到过这个问题吗?我将不胜感激!

我在 public_html 文件夹中找到的这个错误日志

[Wed Nov 09 02:38:23.846102 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.694511 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.542651 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.391229 2016] [:error] [pid 662939:tid 139899948750592] [client 144.76.13.209:64849] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:38:23.088840 2016] [:error] [pid 663540:tid 139899990714112] [client 144.76.13.209:64845] File does not exist: /home/wapgee/public_html/index.php
[Wed Nov 09 02:30:14.558814 2016] [:error] [pid 572374:tid 139899906787072] [client 141.8.143.213:57443] File does not exist: /home/wapgee/public_html/index.php

查看您站点的根目录是否放置在正确的位置。与 Apache 不同,Nginx 不显示文件索引。

首先你至少要等一天。因为 dns 更改可能需要 12 小时或超过 12 小时才能更改。

其次您需要删除 dns 缓存,我们来做吧

Windows 7 和 Vista:

  1. 单击“开始”菜单
  2. 在搜索框中输入 cmd
  3. 在程序搜索结果中右键单击 cmd,然后选择 运行 作为管理员

Windows 98/NT/2000/XP

  1. 点击开始菜单Select运行
  2. 键入或selectcmd打开命令行window

打开 cmd 后键入此命令:

ipconfig /flushdns

那么您需要清除浏览器缓存:

Google chrome: https://support.google.com/accounts/answer/32050?hl=en

Firefox: https://support.mozilla.org/en-US/kb/how-clear-firefox-cache