服务器 Gind.cn
  • Linux
  • Windows
  • Ubuntu
  1. 服务器 Gind.cn
  2. 重写 nginx
  3. 基于$ request_body的Nginx条件代理
Intereting Posts
Xen到KVM Windows客户端迁移 Sendmailconfiguration – 本地域 rsyncfilter文件规则的子path 您如何在Juniper SRX系列防火墙上实施NAT-T传递? 是否有可能在计算引擎中看到输出启动脚本 如何保护configurationpipe理服务器 Vmware播放器3.0 – 无法从64位(来宾或主机)ping 32位来宾, 在启动时挂载/ etc / fstab 如何在过去15分钟内测量带宽? 用户locking到特定的目录设置vsftpd 如何调整我的CentOS虚拟机的坐标? 没有要求的属性的默认值 添加不包括SSH数据包的延迟和随机丢包 RAID上的卷失败 – 如何处理? 主机名是否区分大小写?

基于$ 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