› NGINX
› NGINX Trac
› 3rd Party Modules
› Security Advisories
› CHANGES
› OpenResty
› ngx_lua
› Tengine
在线学习资源
› NGINX 开发从入门到精通
NGINX Modules
› ngx_echo
letitbesqzr
V2EX  ›  NGINX

nginx 的 sub_filter 如何替换多个关键词

  •  
  •   letitbesqzr · Nov 2, 2014 · 9034 views
    This topic created in 4386 days ago, the information mentioned may be changed or developed.
    用别人反代的谷歌经常让输验证码..准备自己折腾了个..发现谷歌载入图片和一些js用的是
    ssl.gstatic.com 这个域名...

    sub_filter www.google.com google.xxx.cc;
    sub_filter ssl.gstatic.com/gb google.xxx.cc/gb;
    使用两个直接报错了...
    如何正确的同时替换两个?
    8 replies  •  2014-11-25 09:34:25 +08:00
    letitbesqzr
    letitbesqzr
    OP
    Nov 2, 2014
    1
    翻了下文档,找到个配置 subs_filter 可以配置多个..
    XiaoxiaoPu
    XiaoxiaoPu
    Nov 2, 2014
    2
    sub_filter_once off;
    fising
    fising
    Nov 2, 2014 via iPad
    3
    letitbesqzr
    letitbesqzr
    OP
    Nov 2, 2014
    4
    @fising https://google.sqzr.cc 搞定了..把ssl.gstatic.com 地址换成七牛云的了..速度块不少/
    declanVox
    declanVox
    Nov 2, 2014
    5
    @letitbesqzr 请问能帮忙看看这个问题?

    http://v2ex.com/t/143289#reply2
    declanVox
    declanVox
    Nov 2, 2014
    6
    我点了楼主头像多次,刷了微博多回,发现 v2 没有私信!

    我在微博私信楼主了
    blijf
    blijf
    Nov 25, 2014
    7
    @fising nginx 0.7貌似不能用 - -
    fising
    fising
    Nov 25, 2014❤️1
    8
    @blijf 我安装了,貌似也没有任何作用。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   5618 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 02:48 · PVG 10:48 · LAX 18:48 · JFK 21:48
    ♥ Do have faith in what you're doing.