VPS侦探论坛

用户名  找回密码
 注册
img_loading
智能检测中
查看: 9258|回复: 8

[Apache] 关于网站出现404 Not Found问题

[复制链接]
发表于 2012-3-9 10:32:19 | 显示全部楼层 |阅读模式

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


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

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


装的是LNMP包。
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-9 17:43:48 | 显示全部楼层


/usr/local/nginx/sbin/nginx -t 测试看看

或贴配置,也看看配置里目录下面是否有index文件
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-3-9 18:23:38 | 显示全部楼层

回复 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   后列出的,请军哥帮忙看看,谢谢啊~
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
发表于 2012-3-10 09:29:17 | 显示全部楼层

回复 3# 的帖子




提示的这些虚拟主机可能都多添加了一遍,如果用vhost.sh 添加的你可以看一下/usr/local/nginx/conf/vhost/下
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
 楼主| 发表于 2012-3-10 14:03:03 | 显示全部楼层

回复 4# 的帖子


军哥,是用vhost.sh添加的
不过我检查了,发现没有重复的。

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

 楼主| 发表于 2012-3-10 16:04:33 | 显示全部楼层

回复 4# 的帖子


[root@279116 plugins]# locate /bdb.gold787.com
/home/wwwlogs/bdb.gold787.com.log
/usr/local/nginx/conf/vhost/bdb.gold787.com.conf


貌似系统里只有一个
发表于 2012-3-10 18:38:47 | 显示全部楼层

不能光看配置文件的个数,自己看配置文件
美国VPS推荐: 遨游主机LinodeLOCVPS主机云搬瓦工80VPSVultr美国VPS主机中国VPS推荐: 阿里云腾讯云。LNMP付费服务(代装/问题排查)QQ 503228080
 楼主| 发表于 2012-3-10 23:39:00 | 显示全部楼层

回复 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;
        }




配置没错误呀。
Linux下Nginx+MySQL+PHP自动安装工具:https://lnmp.org
发表于 2012-3-20 23:12:57 | 显示全部楼层


站群是什么呢,你做这么多一样的网站有什么用呢

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

您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-3-15 05:48 , Processed in 0.036457 second(s), 16 queries .

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

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