|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
5 R. m. Z( u* w* P" v- L& E - proxy_ssl_name www.websiteplanet.com;7 {6 R6 Y0 P8 G ~8 o
- proxy_ssl_server_name on;% q6 b% E0 R! V
- gzip on;
5 o) R; Q9 y/ y0 Y; x% M - gzip_min_length 1k;' B3 E. P0 x; L) z' W; u( ^; P
- gzip_buffers 4 16k;
- Y R; e7 [ M - gzip_comp_level 5;
* v9 n1 ]% _! C" D- @ - 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;
0 J$ T; b7 u; { - gzip_vary off;
: O) f/ X. E! i& l - proxy_redirect off;1 i4 H( Y" q2 d, f
- proxy_set_header Host www.websiteplanet.com;
" ~+ V% V* {, c5 B: ]9 Y7 m" J - proxy_set_header X-Real-IP $remote_addr;
; H8 i& _" p8 Q9 s; X - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;: `/ D( ~6 }4 C" O. E
- proxy_pass https://www.websiteplanet.com;. J2 @/ }3 r# O. j* l4 ?3 r
- proxy_set_header Accept-Encoding "";3 N% K/ u3 s; s- O' K: p, j
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
/ E( v/ o, Q% Y - sub_filter_types text/xml;9 U$ m1 g2 U1 P0 G1 z
- sub_filter_once off;& z7 O# o- p$ {( V" N3 X
- }
复制代码
6 ~: F& x+ o" F) x
. k- W V8 q% X搞定 |
|