VPS侦探论坛

标题: 关于网站出现404 Not Found问题 [打印本页]

作者: gtyre1    时间: 2012-3-9 10:32
标题: 关于网站出现404 Not Found问题
我做了个小站群 ,大概有100个站点。这些站点全部都是一样的配置。。但是昨天发现其中有5个打开时会出现404 Not Found提示。我在网址后面加 index.php会出现No input file specified.
请问大家这是怎么回事呢?


网站:http://bdb.gold787.com

另:排除权限问题。。。配置方面也没有修改过,一直没问题,就是今天昨天出现这个问题。。。VPS也重启过。


装的是LNMP包。
作者: licess    时间: 2012-3-9 17:43
/usr/local/nginx/sbin/nginx -t 测试看看

或贴配置,也看看配置里目录下面是否有index文件
作者: gtyre1    时间: 2012-3-9 18:23
标题: 回复 2# 的帖子
[root@279116 ~]# /usr/local/nginx/sbin/nginx -t
nginx: [warn] conflicting server name "abb.gold787.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "bdb.gold787.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "abc.gold787.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "atb.gold787.com" on 0.0.0.0:80, ignored
nginx: [warn] conflicting server name "acc.gold787.com" on 0.0.0.0:80, ignored
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


---------------------------------

这是输入/usr/local/nginx/sbin/nginx -t   后列出的,请军哥帮忙看看,谢谢啊~
作者: licess    时间: 2012-3-10 09:29
标题: 回复 3# 的帖子
提示的这些虚拟主机可能都多添加了一遍,如果用vhost.sh 添加的你可以看一下/usr/local/nginx/conf/vhost/下
作者: gtyre1    时间: 2012-3-10 14:03
标题: 回复 4# 的帖子
军哥,是用vhost.sh添加的
不过我检查了,发现没有重复的。
作者: gtyre1    时间: 2012-3-10 16:04
标题: 回复 4# 的帖子
[root@279116 plugins]# locate /bdb.gold787.com
/home/wwwlogs/bdb.gold787.com.log
/usr/local/nginx/conf/vhost/bdb.gold787.com.conf


貌似系统里只有一个
作者: licess    时间: 2012-3-10 18:38
不能光看配置文件的个数,自己看配置文件
作者: gtyre1    时间: 2012-3-10 23:39
标题: 回复 7# 的帖子
server
        {
                listen       80;
                server_name bdb.gold787.com;
                index index.html index.htm index.php default.html default.htm default.php;
                root  /home/wwwroot/bdb787;

                include dedecms.conf;
                location ~ .*\.(php|php5)?$
                        {
                                fastcgi_pass  unix:/tmp/php-cgi.sock;
                                fastcgi_index index.php;
                                include fcgi.conf;
                        }

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

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

                access_log off;
        }




配置没错误呀。
作者: fineusb    时间: 2012-3-20 23:12
站群是什么呢,你做这么多一样的网站有什么用呢




欢迎光临 VPS侦探论坛 (https://bbs.lnmp.com/) Powered by Discuz! X3.4