I've recently taken over an environment using HAProxy, and I'm attempting to learn the config and what it all means, but I'm 

finding some aspects of it are not clear. 

我最近在用Haproxy,我尝试学习配置,但是我发现有些方面不是很清楚
What does “acl cdn_name hdr_beg(host) -i foor.bar.com” mean in HAProxy's configuration? acl zjtest7_com hdr_reg(host) -i zjtest7.com
use_backend zjtest7_com if zjtest7_com I think the above means that if host header begins with "foo.bar.com" then use the cdn cdn_name, but I'm not totally sure. Can somebody confirm for me 我认为如果主机请求头是以"foo.bar.com" 开始 那么使用 cdn_name It's defining an ACL with the name cdn_name, with the criteria hdr_beg(host) -i foo.bar.com. The criteria basically means that the HTTP Host: header begins with "foo.bar.com" and it uses case-insensitive matching (the "-i" flag). 这是定义一个ACL 使用标准的 hdr_beg(host) -i foo.bar.com. 标准基本意思是 HTTP Host:header 开始以"foo.bar.com" 那么它使用不区分大小写的匹配 但是这个实际上什么业不做,但是它会进一步用于你的配置,你可能会看到下面这样的东西 <something something> if cdn_name 如果客户请求使用一个 Host: header 是以"foo.bar.com" 开始, HAproxy 会做任何 定义在<something something> 里

最新文章

  1. WPF GDI+ bitmap.save 一般性错误
  2. android_demo之生成颜色布局
  3. Silverlight DataGrid数据行背景颜色控制
  4. 判断URL是否能链接成功
  5. MSChart使用之双Y轴使用
  6. [Cocos2d-x学习笔记]Android NDK: Host &#39;awk&#39; tool is outdated. Please define NDK_HOST_AWK to point to Gawk or Nawk解决方案
  7. php sprintf用法
  8. Kotlin封装RxJava与Retrofit
  9. SparkCore| 算子
  10. python从零开始 -- 第1篇之环境搭建
  11. VMware网络连接模式——桥接模式、NAT模式以及仅主机模式的介绍和区别
  12. semantic segmentation 和instance segmentation
  13. centos6.5系统bash损坏之救援模式修复
  14. [Android] 关于Android的问号?和@符号的用法
  15. document的全量替换、强制创建、删除
  16. LY.JAVA面向对象编程.内存图
  17. 延迟载入Dll(动态载入Dll)
  18. TFLearn 与 Tensorflow 一起使用
  19. shell for if
  20. 第八周PSP(11.5--11.9)

热门文章

  1. mouseenter 事件,固定右侧客服特效
  2. ACM俱乐部 字符串
  3. 基于C#利用金山取词组件实现屏幕取词功能
  4. 【NHibernate】HQL入门
  5. 【BZOJ 1927】 [Sdoi2010]星际竞速
  6. 在DataTable中执行DataTable.Select(&quot;条件&quot;)
  7. xcode7 app loader error itms 90168
  8. linux驱动系列之ubuntu快捷键(转)
  9. poj 2226 Muddy Fields (转化成二分图的最小覆盖)
  10. java程序练习:数组中随机10个数中的最大值