VPS侦探论坛

 找回密码
 注册
查看: 4820|回复: 9

404 Not Found

[复制链接]
发表于 2016-5-12 10:27:00 | 显示全部楼层 |阅读模式

http://moviewallpapers.us/这个是我首页,可以正常访问
然后随便点就404 Not Found

为啥呀,求助
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-5-12 12:02:22 | 显示全部楼层


军哥求助啊,php.INI那个我也改了啊
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-5-12 12:15:20 | 显示全部楼层

root@moviewallpapers:~# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2016-5-12 12:17:20 | 显示全部楼层



server
    {
        listen 80;
        #listen [::]:80;
        server_name moviewallpapers.us;
        index index.html index.htm index.php default.html default.htm default.php;
        root  /home/wwwroot/moviewallpapers.us;

        include none.conf;
        #error_page   404   /404.html;
        location ~ [^/]\.php(/|$)
        {
            # comment try_files $uri =404; to enable pathinfo
            try_files $uri =404;
            fastcgi_pass  unix:/tmp/php-cgi.sock;
            fastcgi_index index.php;
            include fastcgi.conf;
            #include pathinfo.conf;
        }

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

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

        access_log  /home/wwwlogs/moviewallpapers.us.log  access;
    }
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2016-5-12 13:08:40 | 显示全部楼层

老大还没来看.

你别用伪静态呀.

要么就去你程序官方找nginx 的伪静态规则...

再修改这里     include none.conf;   指向你的规则文件.

军哥运维代购:http://shop63846532.taobao.com/

 楼主| 发表于 2016-5-12 13:21:49 | 显示全部楼层

回复 5# 的帖子


是不是就是添加虚拟机时候 rewrite选择no就行啊,谢谢啦
 楼主| 发表于 2016-5-12 13:38:31 | 显示全部楼层

include none.conf;


不用伪静态也不行啊,疯了
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-5-12 14:20:59 | 显示全部楼层

什么程序?
404是文件不存在,你先确认网站目录下是否存在你访问的文件

如果程序开启了伪静态的话要虚拟主机配置文件里include上对应程序的nginx伪静态才可以
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2016-5-12 16:16:38 | 显示全部楼层


一个壁纸站程序,网页应该是PHP生成的,从别的地方搬家过来的,伪静态关闭了。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2016-5-13 09:13:11 | 显示全部楼层

回复 9# 的帖子




信息有限没法说
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-9-29 07:17 , Processed in 0.028084 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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