服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. nginx
  3. nginx为googlebot提供不同的html文件
Intereting Posts
在Ubuntu 14.04上安装nginx的更新版本(1.11.x) 从IIS日志中提取不同的restful MVC路由 ZoneAlarm阻止了什么地址“223.1.1.128”? 撤销R2上的replace任务pipe理器 ISC BIND提供什么速率限制选项? caching数据库结果 – 如何启动需要轻轻一点 在testing与生产之间共享Apacheconfiguration VLCvideo编码产生高“好”的负载 远程开机和IPMI Poweredge 2950 我如何续订Exchange服务器上使用的SSL证书? 运行DBCC命令需要哪些权限? Virtualbox崩溃是否意味着我的服务器受到攻击? 你在Windows Server上使用什么RAM磁盘? 通配符子域支持的Apache vhostconfiguration 路由器与交换机

nginx为googlebot提供不同的html文件

我有一个angular色的应用程序通过nginx服务。 对于googlebot我想提供一个不同的静态HTML文件,以便它可以正确的索引,下面的nginxconfiguration是否正确? (我不想让使用phantomjs的设置变得复杂,我只想探索像sitemap.xml这样的其他选项,除非nginx不能完成这项工作)

location / { if ($http_user_agent ~ Googlebot) { rewrite ^/(.*)$ /forgooglebot.html break; } root /usr/share/nginx/app; try_files $uri $uri/ /index.html; } 

  • nginx codeigniter重写:控制器名称与目录冲突
  • 如何用Nginx提供版本号的静态文件?
  • “无法分配内存”使用composer从laravel git使用fork安装composer
  • 在具有多个虚拟主机的nginx服务器之前清除服务器
  • 无法在全新安装中设置nginx + php5-fpm获取404
  • Nginx的“允许127.0.0.1”允许在所有用户的位置块
  • 根据上次修改时间使用expires头文件提供服务
  • NGINX connect()unix:/var/run/php5-fpm/forums.socket失败
  • 如何设置svn与nginx可以检查通过http协议?
  • 重写代理上游
  • 缓冲的nginx / varnish访问日志到远程服务器
  • 将网站地图存储在场外
  • FS很多小文件,大多是读?
  • nginx SNI不按预期工作
  • 没有https的nginx服务器名称

  • © 2017 服务器 Gind.cn
  • Topics
  •        
  • Powered by Server
  • Privacy Policy