
1 TONYHEAD 2015 年 4 月 2 日 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 年 4 月 2 日 如果只有单个域名用 sub_filter 就好了,免得麻烦.... |
4 TONYHEAD 2015 年 4 月 2 日 @fuhm 你加 proxy_set_header Host sketchfab.com; 看看挂不挂…… |
7 fising 2015 年 4 月 2 日 不生效是因为你没有安装官方自带的 http_sub_module 编译的时候加上 --with-http_sub_module |
8 Slienc7 2015 年 4 月 2 日 |
9 surftheair 2015 年 4 月 2 日 proxy_set_header Accept-Encoding ""; 你可能还需要替换css和js里的网址,还有外部链接,二级域名 proxy_set_header 此处的host应该是被反代的网站,proxy_pass 后跟的是IP的话才需要手动指定,跟的是域名的话没必要指定。 |
12 ryd994 2015 年 4 月 3 日 proxy_set_header Host \$host; 为何$前加\ ? |