|
|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
6 |4 n7 w8 d. j5 J* d* w7 \ - proxy_ssl_name www.websiteplanet.com;$ k' D8 ?& i6 D0 V, B% O& Q
- proxy_ssl_server_name on;
' K& F% d6 G! ^; m: x& l - gzip on;$ f$ n( G+ V% X! z6 k
- gzip_min_length 1k;
, p8 C1 k: s! `7 k9 p' k - gzip_buffers 4 16k;
: m) l3 Y2 L# J% h - gzip_comp_level 5;# s# J7 N! K/ ~0 t4 k& L# x0 a* v
- gzip_types text/plain application/javascript application/x-javascript text/css application/xml text/javascript application/x-httpd-php image/jpeg image/gif image/png;1 J8 _2 h/ ?7 |+ i7 C4 k) R# g4 w/ ?
- gzip_vary off;1 a& I" Z3 ]" m2 q4 t
- proxy_redirect off;7 J+ c; p$ ~0 u( S3 I
- proxy_set_header Host www.websiteplanet.com;
* ]7 _( \9 I" E9 w5 B - proxy_set_header X-Real-IP $remote_addr;6 q. o6 d9 i z+ S! W" [2 n+ L0 x( Y
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;$ ~! T+ l+ P) Q4 @) o/ S! L
- proxy_pass https://www.websiteplanet.com;
* ~5 K2 G# z# h0 d' x' h - proxy_set_header Accept-Encoding "";/ \0 c) H" o+ D, x, y
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
. i, n) o1 F% [- F' F2 h7 n - sub_filter_types text/xml;
' P/ R& m& b- b5 O, H& @ - sub_filter_once off;
4 G: T1 ^1 F3 B$ n/ y - }
复制代码
- x. t. e0 H2 ^1 H* X* H4 T1 e0 b# Q: b0 \( b6 G$ ?7 ?2 F! |5 ?
搞定 |
|