|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {! C. u I1 p& r# P; L( E
- proxy_ssl_name www.websiteplanet.com;. z# D& L- c8 B+ Q8 c1 S& y( B' O
- proxy_ssl_server_name on;- W, U$ H" P# t# R* D
- gzip on;
; k( L8 `2 R7 ~! G+ D7 Q - gzip_min_length 1k;
8 B, t5 Z& h, S% H# |" k - gzip_buffers 4 16k;7 W% I1 ?, w5 E$ ]8 ^4 x* M
- gzip_comp_level 5;
! F" b7 T( g. E4 C3 N% ] - 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;
9 S# w2 |' L6 R7 V y; u/ U8 N - gzip_vary off;
& }: h8 ?+ O% x - proxy_redirect off;9 R, |; P( W; S7 T5 Y5 \2 k
- proxy_set_header Host www.websiteplanet.com;& C! x8 q1 O5 i6 `' O
- proxy_set_header X-Real-IP $remote_addr;
0 s. E+ D+ u; N. p - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
% }# |$ u h: F - proxy_pass https://www.websiteplanet.com;
* |) o0 l. e3 S+ i4 l - proxy_set_header Accept-Encoding "";4 K3 Q9 Z7 U# I3 t
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
7 I4 ]1 I o- {) I {) |9 d - sub_filter_types text/xml;& U0 }9 B- K: V" X6 B9 E. ^6 w& t
- sub_filter_once off;
# M) c2 l) N7 m - }
复制代码
, `* z* @' x9 ^0 W2 m: u) S. `" B' `0 D) T4 E4 g
搞定 |
|