服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 重写 nginx
  3. 基于$ request_body的Nginx条件代理
Intereting Posts
虚拟服务器硬盘收缩没有明显的原因 多个networking适配器的IP使用情况 如何将这三种环境与SSO连接? WLANconfiguration文件GPO设置和保存的用户凭证 IBM存储ds3400无法连接到使用光纤的pipe理 Windows CE重新启动后恢复默认configuration(Motorola MC3190) snmpget“在这个OID上没有这个对象在这个代理上可用” 如何将现有的RDS数据库添加到正在运行的堆栈? 将Hyper-V虚拟机托pipe给客户 通过VPN将压缩文件从Server 2008 R2networking共享复制到XP客户端失败 对networking带宽应用配额(保证最小吞吐量) 用Windows Server 2008configurationRAID 5时出现问题 从一台服务器移动非常大(〜100 Gb)到另一台服务器 为什么powershell在单独的窗口中运行可执行文件? Windows进程激活服务无法启动错误代码50

基于$ request_body的Nginx条件代理

我希望我的服务器代理Google如果我的$request_body的POSTed请求包含stringgoogle ,例如

 echo "google" | lwp-request -m POST "http://127.0.0.1" 

所以我有这样的configuration,例如

 server { listen 127.0.0.1:80 default; location / { if ($request_body ~* .*google.*) { proxy_pass http://www.google.com; break; } } } 

但是上面configuration的结果总是“404 Not Found”

任何想法? 谢谢。

  • 将URLredirect到IIS 7.5中的另一个URL
  • Lighttpd与FastCGIconfiguration运行ViewVC – 重写问题
  • 面对nginx + tomcat上的应用程序redirect问题
  • 用于.htmlselect器的mod_rewrite
  • 重写所有的.html扩展,并在Nginx中删除索引

  • Lighttpd单个子域redirect/重写
  • Nginx的重写规则为301redirectfilename.asp到filename.php
  • 将apache重写规则转换为nginx
  • nginx位置重写,但proxy_rewriteclosures
  • nginx重写永久性重写的位置
  • 在WordPress和Cherokee Web Server上使用虚拟域名
  • JBoss的URL重写
  • Nginx:我可以在一个不同的URL上caching一个匹配模式的URL吗?
  • 如何使这个htacess重写规则由于最终参数而停止失败
  • Nginx重写子域的规则
  • Nginx重写Zimbra的规则
  • Nginx – 从深层目录结构中提供静态内容
  • URL重写和机架基础path
  • varnish3.0.2重写url的howto
  • Web应用程序的URL重写错误

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