|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {9 k. n1 l$ T* a( K: z9 j" M
- proxy_ssl_name www.websiteplanet.com;* Y; `, y! n8 B- E, G
- proxy_ssl_server_name on;+ P8 {$ O) @4 d1 ?( f( I
- gzip on;
9 s' ^& b5 ?0 \ - gzip_min_length 1k;
, d' ?2 c3 |" C2 m" L i4 u8 j$ [8 E- z - gzip_buffers 4 16k; ]9 y# q3 E! ^# x. H" L9 v
- gzip_comp_level 5;8 l. Q8 h: ~+ {' X$ s* @ w
- 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;
8 b; F$ x0 }6 j, m; Z+ H( b - gzip_vary off;+ i% ~7 f1 k$ L( j/ a7 X( n! r
- proxy_redirect off;
1 k" b" Y. L8 Q# q2 h: P# }! n+ ? - proxy_set_header Host www.websiteplanet.com;
6 J( G" O. o: Q( z - proxy_set_header X-Real-IP $remote_addr;& Z" j3 l2 H& g3 S
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;2 j# S/ G' B/ _; t. P5 t
- proxy_pass https://www.websiteplanet.com;& u: f9 O$ U4 e% ]
- proxy_set_header Accept-Encoding "";4 c' E. H, D, r# z
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
; y& Z0 O0 d* `/ e7 `) m+ ^ - sub_filter_types text/xml;
! d1 M& N8 c6 {/ Z a# u5 k. u - sub_filter_once off;- \# Z5 o/ D# {4 z3 B$ j
- }
复制代码
; U1 l% u# e9 H' p) y0 `
; ~- `8 {2 Z1 R: v1 W7 {6 F! R4 u0 _% y( b搞定 |
|