|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
& B4 l1 h+ W, z+ V B - proxy_ssl_name www.websiteplanet.com;
5 H% h( B: D2 h) o! q$ ]8 {9 ^( y) h - proxy_ssl_server_name on;1 V2 v& X/ T0 i2 Q" D
- gzip on;$ l a$ b- i' J& e% `
- gzip_min_length 1k;
' @2 j& ^/ a9 Q% E7 x' G3 ~. m - gzip_buffers 4 16k;+ x5 G' t* J+ Y, ?5 R6 t
- gzip_comp_level 5;0 e1 I: j" M% |2 g6 G+ r z
- 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; a+ ` M. M& g/ F, ?3 b3 @
- gzip_vary off;
: _3 z: m. D7 v7 K - proxy_redirect off;
! H6 M# m/ _- [* k- K! r8 x6 } - proxy_set_header Host www.websiteplanet.com;, Y' [( n# R$ m+ p) v- T; `
- proxy_set_header X-Real-IP $remote_addr;
2 G+ V& j3 X R( m4 E - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
& x- s1 |& m/ ?* {' k; B - proxy_pass https://www.websiteplanet.com;; f" A. J1 r) m6 X1 O- w
- proxy_set_header Accept-Encoding "";
3 W6 G5 y- N4 r$ P, x8 G5 l% T0 l - sub_filter 'websiteplanet.com' 'websiteplanet.org';, ]* M) D- U7 i4 M: F# B! P
- sub_filter_types text/xml;
j+ [' n2 B0 \6 j - sub_filter_once off;
! l _$ p2 O) f( r6 k/ j3 \% R; m - }
复制代码
% C0 n8 M! j5 x" T& C% P+ {9 z
5 x! ^* n( j' o- ~+ ]+ T+ Y搞定 |
|