|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {$ ?# T- _/ i: N
- proxy_ssl_name www.websiteplanet.com;! o, R% ^+ R& a2 M$ j
- proxy_ssl_server_name on;) I& f( H& i+ g( p
- gzip on;
" p5 r9 @' e( l$ b$ d/ x6 g - gzip_min_length 1k;
2 k( ]& v2 [& M7 C - gzip_buffers 4 16k;
) D* [5 l3 W' k) u6 Y* r - gzip_comp_level 5;, S7 b0 J* x z0 ?# z9 a) ]
- 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;
2 m4 p# K1 D# E' K, |' t/ K - gzip_vary off;: k4 h, l4 S& R# o
- proxy_redirect off;
3 F9 O3 B2 \; j1 y8 J6 d3 s - proxy_set_header Host www.websiteplanet.com;
: Q9 f- @, Q+ a( t# q6 ~3 U - proxy_set_header X-Real-IP $remote_addr;
: ?/ y' a$ x9 U - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;8 b3 U8 j5 u F( r( u9 u" A9 r
- proxy_pass https://www.websiteplanet.com;
3 c4 I9 U8 ^- Y: P, k" N4 J6 E - proxy_set_header Accept-Encoding "";; Z# @5 K! s6 ?1 Q0 M; T
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
& V6 t: @9 U, M4 Z4 @ U) O - sub_filter_types text/xml;8 K6 A1 U( J3 m$ R
- sub_filter_once off;
5 L" s# V `$ f( O& I6 Y8 c- z - }
复制代码 9 m7 D( f5 o2 ~: F4 H- r, f
# s6 C, r* R# S9 r- x8 s; I5 m: h搞定 |
|