我在Ubuntu服务器12.04上运行Nginx 1.1.19,并且在执行Googlebot时遇到问题,请参阅robots.txt文件。我用例子this post,但我没有得到成功。为了测试服务,我访问网站管理员工具,点击“完整性>按Googlebot搜索”...只是我从“未找到”,“无法使用网页”和“robots.txt文件无法访问” ....Nginx块robots.txt文件
我还要确认是否配置应该在文件nginx.conf
或文件执行‘在/etc/nginx/sites-enabled
默认’,因为在以后的版本中,我注意到,可能有所不同。 这是我的基本设置。
root /usr/share/nginx/www;
index index.php;
# Reescreve as URLs.
location/{
try_files $uri $uri/ /index.php;
}