cnken / substitutions4nginx

Automatically exported from code.google.com/p/substitutions4nginx
3 stars 3 forks source link

反向代理的CSS不会被替换 #13

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago

http://s2.images.houdao.com/images/houdaov3/linstyle.css

里面有一个logo.png

    location /image2/ {
        proxy_pass http://s2.images.houdao.com/;
        subs_filter_types text/css;
        subs_filter 'ignore.png' '';
        subs_filter 'logo.png' 'http://www.kalvin.cn/locoy/logo/haoyouxi.png';

        proxy_set_header Accept-Encoding "";
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header User-Agent $http_user_agent;
        }

Original issue reported on code.google.com by wkx1...@gmail.com on 5 Mar 2012 at 6:47

GoogleCodeExporter commented 9 years ago
为什么我是可以的呢,我用chrome和firefox试了都可以替换啊

Original comment by nbubi...@gmail.com on 5 Mar 2012 at 7:16