【问题标题】:Website shows 404 not found nginx?网站显示404 not found nginx?
【发布时间】:2017-03-02 06:39:37
【问题描述】:

最近我将我的网站和域名从 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 日志,如果您仍然无法从这些日志中找出任何内容,请在此处发布。
  • 您好,我曾多次尝试访问您的网站。有时它有效,有时则无效。我认为 dnsservers 存在一些问题。
  • @Amjad Ali,你可以访问 nginx 配置文件吗?可以的话可以发在这里吗?

标签: php nginx yii http-status-code-404


【解决方案1】:

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

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

Windows 7 和 Vista:

  1. 点击开始菜单
  2. 在搜索框中输入 cmd
  3. 在程序搜索结果中右键cmd,选择以管理员身份运行

Windows 98/NT/2000/XP

  1. 点击开始菜单选择运行
  2. 键入或选择 cmd 打开命令行窗口

打开 cmd 后,输入以下命令:

ipconfig /flushdns

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

谷歌浏览器: https://support.google.com/accounts/answer/32050?hl=en

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

【讨论】:

    【解决方案2】:

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

    【讨论】:

    • 如何检查我网站的根目录是否放置在正确的位置?
    猜你喜欢
    • 2014-02-24
    • 1970-01-01
    • 2021-12-27
    • 1970-01-01
    • 1970-01-01
    • 2013-03-15
    • 2020-10-21
    • 2022-08-02
    • 2015-01-04
    相关资源
    最近更新 更多