|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {) n, O+ e) J9 `/ o
- proxy_ssl_name www.websiteplanet.com; w: K9 a5 d) I" X* j
- proxy_ssl_server_name on;
* Q% n2 L; a0 ]2 c, M - gzip on;
7 b3 F! B0 O" w6 C - gzip_min_length 1k;
7 D5 K- ^, t7 Q# V. r$ E( P - gzip_buffers 4 16k;
, n: t+ g6 d) m0 S8 A: v# k6 h - gzip_comp_level 5;2 E% o5 v4 J; F# a# I- h4 p
- 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 N; c. {& Y7 ]8 i) z
- gzip_vary off;% w3 r6 j( G/ l+ Z4 l
- proxy_redirect off; W3 N8 a( _% I! ]% f s
- proxy_set_header Host www.websiteplanet.com;! P1 x4 K7 }' \; G D+ V" q
- proxy_set_header X-Real-IP $remote_addr;
# R& h7 r6 ^3 c4 o7 v5 h - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;& t; Q' {# r5 {) `
- proxy_pass https://www.websiteplanet.com;
( U# f7 g6 G( x( { - proxy_set_header Accept-Encoding "";' ]4 Y# v' b2 J! v; q
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
/ k# M. {# X* b$ }0 l# E1 M3 h - sub_filter_types text/xml;/ o% S- C6 _ M* @* G3 H5 A
- sub_filter_once off;
+ }5 T+ ?5 V0 d; T v# T - }
复制代码 4 ?, E q2 B0 ?
! e- I2 G. m2 Z7 ]7 F% b
搞定 |
|