|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {) i7 n% U( X @# A" k* d' R: v( v
- proxy_ssl_name www.websiteplanet.com;
, T3 a/ G/ Q2 e - proxy_ssl_server_name on;
* O' E& R" w% O" q5 X - gzip on;
6 d* g0 s$ K5 o ?4 X* i - gzip_min_length 1k;
( P9 e+ C7 V* B5 n! ^ q4 p) i - gzip_buffers 4 16k;
8 I- d, k5 P& Z I - gzip_comp_level 5;
' T8 P1 ?, k/ G7 L! ^- O - 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;/ B* o2 _/ s( P5 A7 ^
- gzip_vary off;$ |3 R0 Y0 U- t$ k# u8 k M4 Y; L. L
- proxy_redirect off;& v( I. r: \$ ]2 U, z" a: K" p
- proxy_set_header Host www.websiteplanet.com;/ q4 z6 _0 A5 m0 K' r% P* m
- proxy_set_header X-Real-IP $remote_addr;8 T% I5 B7 X6 ^( }
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
% @+ x9 _& s0 u - proxy_pass https://www.websiteplanet.com;
~/ h- @( ~# m! o. t3 U - proxy_set_header Accept-Encoding "";& a2 R* J: y6 R' K. `
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
/ q/ q, Y# {8 `: o4 y# h - sub_filter_types text/xml;
3 ]. H" K7 e3 @2 X - sub_filter_once off;
n% s8 P, s6 n - }
复制代码 - e3 S- ?7 q$ l
' L$ y0 n8 ]) Q
搞定 |
|