【发布时间】:2013-02-14 20:02:10
【问题描述】:
我在 Ubuntu 服务器 12.04 上运行 Nginx 1.1.19,但在执行 Googlebot 时遇到问题,请参阅 robots.txt 文件。我使用了示例this post,但没有成功。为了测试该服务,我访问了网站管理员工具,点击“完整性 > 搜索为 Googlebot”...只是我收到来自“未找到”、“页面不可用”和“robots.txt 文件不可访问”的消息“……
我还要确认是否应该对文件nginx.conf 或/etc/nginx/sites-enabled 中的文件“default”执行配置,因为在以后的版本中,我注意到可能会有所不同。
这是我的基本设置。
root /usr/share/nginx/www;
index index.php;
# Reescreve as URLs.
location / {
try_files $uri $uri/ /index.php;
}
【问题讨论】:
标签: nginx robots.txt