|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
. d9 `& H7 M# d; x ~. P1 V - proxy_ssl_name www.websiteplanet.com;
9 g- x& Z. w2 q' f _ - proxy_ssl_server_name on;
2 Z7 H4 x* [0 x' L5 N# w! B - gzip on;
! u, X" S, Q! S7 R - gzip_min_length 1k;9 s/ _* |0 ^$ D2 _
- gzip_buffers 4 16k;% H/ ]- P" V6 u, y- w; w7 B
- gzip_comp_level 5;, e7 O9 ^8 T1 q; K7 L- O6 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;
+ M9 _! K, c& E ]8 h% n* P - gzip_vary off;
; Z' ~9 b/ y# q' c - proxy_redirect off;
# [) x4 J" x9 M* ]- e; h3 k - proxy_set_header Host www.websiteplanet.com;
1 }3 K& B* H, ~( Y4 C; U( ] - proxy_set_header X-Real-IP $remote_addr;5 ]4 o2 B f+ O0 ^5 i9 A% f
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;4 p( | q5 d, J' w
- proxy_pass https://www.websiteplanet.com;
: F$ z' F! `* @, F+ h; _ - proxy_set_header Accept-Encoding "";
, W8 [/ {4 n/ S) e - sub_filter 'websiteplanet.com' 'websiteplanet.org';; m/ j* @( _$ ]% d8 L
- sub_filter_types text/xml;) I( s# U, V- b6 d% ^
- sub_filter_once off;* L6 \* ]0 @) {' C: C
- }
复制代码
4 \2 _+ x8 h ?; O7 L" w; b
( l; M2 t8 U m: b" m% [* y搞定 |
|