weakiwi
V2EX  ›  问与答

squid 能禁支特定 host 的 header 吗

  •  
  •   weakiwi · Oct 23, 2016 · 2032 views
    This topic created in 3518 days ago, the information mentioned may be changed or developed.
    因为转发的缘故,最后出来的包, url 里的域名和 host 的域名是不同的。
    在网上查了好像有 acl xheader connection-type xxx ,然后 http-allow !xheader 的用法。但是 host 又是 squid 的关键字。好像还有个 header_deny ,但是只是能禁止一种类型,不知道有没有 squid 禁止特定 host 的方法
    2 replies    2016-10-23 09:21:10 +08:00
    binux
        1
    binux  
       Oct 23, 2016
    我觉得这是一个 xy 问题
    weakiwi
        2
    weakiwi  
    OP
       Oct 23, 2016
    @binux 主要是看重 squid 的缓存功能,其实就是瞎折腾咯。我也知道 haproxy 直接就有这种的功能,如果浪费了你的时间,只能说声抱歉
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   6014 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 06:32 · PVG 14:32 · LAX 23:32 · JFK 02:32
    ♥ Do have faith in what you're doing.