容器技术交流

 找回密码
 立即注册
查看: 3293|回复: 3

robots.txt 返回404状态

[复制链接]
发表于 2012-2-2 22:27:19 | 显示全部楼层 |阅读模式
本帖最后由 无风 于 2012-2-3 11:36 编辑

版本:lumanager 2.0.28
系统:centos 5.7 64bit
模式:完全使用apache的时候 访问robots.txt 状态码是404 其他模式正常
直接用IE访问能读出robots.txt 的内容 不过就是状态码是404

把/usr/local/nginx/conf/vhost.conf中这段删掉就正常了
location ~ (favicon.ico|robots.txt) {

log_not_found off;
access_log   off;
break;
}

不过担心网站重新配置参数的时候 系统会不会又写回去?

 楼主| 发表于 2012-2-3 00:29:58 | 显示全部楼层
希望洞大 这个赶紧得解决下
试了下 网站配置一修改 就会加回去
GOOGLE抓过去全是404了
 楼主| 发表于 2012-2-3 11:28:05 | 显示全部楼层
不知道哪里可以一劳永逸把
location ~ (favicon.ico|robots.txt) {
log_notfound off;
access_log   off;
break;
}
去掉
未命名1.jpg
未命名.jpg
发表于 2012-2-3 11:38:27 | 显示全部楼层
收到
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Archiver|URLOS ( 粤ICP备18087780号 )

GMT+8, 2025-7-6 00:32 , Processed in 0.029385 second(s), 21 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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