|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {: l9 R% W ?5 V
- proxy_ssl_name www.websiteplanet.com;! g4 i0 Q* f7 \
- proxy_ssl_server_name on;
# l0 f; f4 c3 i6 m1 [( ` - gzip on;
2 ?8 h3 X; e' n, y) L - gzip_min_length 1k;1 A: b# N" g' I6 b7 Y
- gzip_buffers 4 16k;% d, j4 c( q" N" T3 q d% ^- j6 f
- gzip_comp_level 5;
0 X, \6 y! M# m) Y( ^+ l& @& D- R - 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;% N/ p. @/ ]6 p0 U# a7 J9 J+ o
- gzip_vary off;2 ~, {2 I# R' m9 M: `& c, Y
- proxy_redirect off;+ S1 @1 K! g3 ]& ?; x* ~: ~# x( C/ l
- proxy_set_header Host www.websiteplanet.com;# h i2 n" s0 f: e& b0 w, A
- proxy_set_header X-Real-IP $remote_addr;
4 n1 k) T; v, Y4 A4 m - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
; q+ B! t' {0 c! D6 ]& N1 e - proxy_pass https://www.websiteplanet.com;- Z7 v$ V( {/ \3 o O
- proxy_set_header Accept-Encoding "";
* h! t9 A" O7 u; G! @7 O+ k - sub_filter 'websiteplanet.com' 'websiteplanet.org';
8 k* o5 z; X/ N. S - sub_filter_types text/xml;: w9 N7 j: _$ u4 P$ Y5 I+ a8 c
- sub_filter_once off;
; d/ n' _: {2 `) G3 C1 C8 V - }
复制代码
* i. A( N& H' \/ a; {' C3 B5 G$ o5 f" H% I1 U O
搞定 |
|