
1 TONYHEAD 2015-04-02 21:13:15 +08:00 subs_filter 'sketchfab.com/models/' 'dl.isway.cn/models/'; subs_filter挺好用的: https://code.google.com/p/substitutions4nginx/ proxy_set_header Host \$host; 意思是 proxy_set_header Host sketchfab.com; |
3 Slienc7 2015-04-02 21:27:37 +08:00 如果只有单个域名用 sub_filter 就好了,免得麻烦.... |
4 TONYHEAD 2015-04-02 21:34:12 +08:00 @fuhm 你加 proxy_set_header Host sketchfab.com; 看看挂不挂…… |
7 fising 2015-04-02 21:53:45 +08:00 不生效是因为你没有安装官方自带的 http_sub_module 编译的时候加上 --with-http_sub_module |
8 Slienc7 2015-04-02 22:02:29 +08:00 |
9 surftheair 2015-04-02 22:45:23 +08:00 proxy_set_header Accept-Encoding ""; 你可能还需要替换css和js里的网址,还有外部链接,二级域名 proxy_set_header 此处的host应该是被反代的网站,proxy_pass 后跟的是IP的话才需要手动指定,跟的是域名的话没必要指定。 |
11 ryd994 2015-04-03 01:57:57 +08:00 @fuhm 不是关掉自己的gzip,而是避免来源gzip proxy_set_header Accept-Encoding ""; |
12 ryd994 2015-04-03 01:58:46 +08:00 proxy_set_header Host \$host; 为何$前加\ ? |