|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {6 F. @, F9 Q& U: V* d
- proxy_ssl_name www.websiteplanet.com;# A' _+ F I: r2 d' P2 M
- proxy_ssl_server_name on;7 y% B- G" t6 j& m, d* ?! B
- gzip on;
# Y% E; g3 a @) ^ ` - gzip_min_length 1k;" L( c' {8 H" V5 i7 ?( M
- gzip_buffers 4 16k;% t0 _" j; }( ?9 }2 o2 ?6 z
- gzip_comp_level 5;+ h$ t" ^ J; `/ V5 C4 Y 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;- ~' f7 j5 f. ]1 i; c( k2 g2 L
- gzip_vary off;# ]* i9 G* {/ F2 z# U! a
- proxy_redirect off;
7 U, l8 N% ` c* m# }% O) A - proxy_set_header Host www.websiteplanet.com;
j/ u8 s$ ]* a/ q - proxy_set_header X-Real-IP $remote_addr;
4 S# P) F4 Y2 R7 p! q: W - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;9 q0 u7 ?9 t5 x" I4 T. Z
- proxy_pass https://www.websiteplanet.com;
( G8 X% Z+ o4 E7 m5 j# \ - proxy_set_header Accept-Encoding "";
: V5 M+ ~9 K0 i0 | - sub_filter 'websiteplanet.com' 'websiteplanet.org';# {4 T, ?$ B" l! B& G J7 W
- sub_filter_types text/xml;1 [: }% x, j1 X! f
- sub_filter_once off;- ~$ ~4 ^. ]" A$ i2 X
- }
复制代码
) P$ g! i3 C$ E" N3 M& x, [; d/ N: x
搞定 |
|