|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
* E2 {3 _; F* E5 ^+ k4 Y6 F) f6 F1 Z' P - proxy_ssl_name www.websiteplanet.com;
0 M! Z0 t8 v% }, i! Z - proxy_ssl_server_name on;
/ Z) h& i( ?! Z2 S. O4 e - gzip on;0 c9 s. o% E2 \. `4 r
- gzip_min_length 1k;9 j7 T& v4 h: k; t/ z& H1 y5 O: _& ^
- gzip_buffers 4 16k;
5 E7 y" f k# n' | - gzip_comp_level 5;$ q: N+ z1 c5 Z! N( 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;! J- G: N: U. @% | V' K; l: w
- gzip_vary off;; Q( }' ^/ P6 o s1 H$ S% O$ j
- proxy_redirect off;
' K, ^6 P5 f$ c/ D) D2 `8 R5 H* i - proxy_set_header Host www.websiteplanet.com;; r# ~$ s: C6 R7 @8 k4 ]& ^
- proxy_set_header X-Real-IP $remote_addr;
* V/ n0 i) s: d* o6 \# z# L - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
) F# ^6 _' w9 {; ^4 F - proxy_pass https://www.websiteplanet.com;: k6 e- Y) ^0 v) z b2 z- |" @3 ]
- proxy_set_header Accept-Encoding ""; h. ^- A D1 J1 L+ a+ m" u5 a
- sub_filter 'websiteplanet.com' 'websiteplanet.org';; |) b5 W) D' b, l" p8 @3 K o$ i! y
- sub_filter_types text/xml;2 ^! W+ e2 Y+ t- o
- sub_filter_once off;
; {) @5 n1 t/ y& n, X5 I4 O) | - }
复制代码 # k( k9 R; V; ~; H8 {: S
1 X& {5 ?% A3 T q( A1 i搞定 |
|