|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
" P3 Z6 G% U4 @, @ - proxy_ssl_name www.websiteplanet.com;! j2 m5 y! `1 |
- proxy_ssl_server_name on;
- X3 g, a! I5 [2 ]% m1 c - gzip on;+ i$ }5 f2 e8 f0 X9 S# g
- gzip_min_length 1k;
. S* C6 ?) O$ t5 a8 d: e - gzip_buffers 4 16k;
( ?( x' l& [& m- h( z/ b - gzip_comp_level 5;
. n% G7 B. {8 w" Q! h" }2 }& 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;
; g9 ]4 h* `2 A" V0 c8 Y: E- s - gzip_vary off;
8 ?8 ]. z y5 o! y - proxy_redirect off;
) y) L1 Z1 P' m7 w% i- B - proxy_set_header Host www.websiteplanet.com;0 b' M+ _' _- Z' X" r3 X
- proxy_set_header X-Real-IP $remote_addr;
9 O) X. D& t) ~4 ` - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;, ]% b+ |% X0 b( C* z" ^, z' s2 ?
- proxy_pass https://www.websiteplanet.com;
2 s( R4 {) F' D9 r$ A0 \ - proxy_set_header Accept-Encoding "";
8 L w: y( b" D( O0 z - sub_filter 'websiteplanet.com' 'websiteplanet.org';
& ~, v+ T `* ~2 i3 J0 S J( }: L: p - sub_filter_types text/xml;- Q: Z$ Q$ @* q1 \( A
- sub_filter_once off;
3 M6 D$ }! K" G- z - }
复制代码 : v2 `" \) t3 t+ [) w% z6 [7 o
4 \$ O$ D6 [6 e1 H$ A' t
搞定 |
|