|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
% l! `2 R( R0 ^3 ?. ] - proxy_ssl_name www.websiteplanet.com;
' Q2 ^0 U8 X& ] - proxy_ssl_server_name on;
/ e$ f. p& K6 W, U! t, ^ - gzip on;4 t( I& a+ `" b; e7 e
- gzip_min_length 1k;5 r; d# f5 D; @8 b$ x5 a- h! W( T C
- gzip_buffers 4 16k;
1 w7 _8 D A( p - gzip_comp_level 5;
3 p+ ?" T1 z4 p- w% R5 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;0 J! }$ f8 ]3 J: H
- gzip_vary off;. I5 G: N: D4 ?) S# h# J: Z
- proxy_redirect off;
& P& G. k0 N* \- q* e. o% H - proxy_set_header Host www.websiteplanet.com;& t& A5 w7 Y/ Z* {( O/ W; U
- proxy_set_header X-Real-IP $remote_addr;4 r2 W0 m8 w# @. Y6 g( A
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;8 G: L) y) z: ^& ?+ o
- proxy_pass https://www.websiteplanet.com;
6 h4 Q% m5 }0 S2 f - proxy_set_header Accept-Encoding "";
5 }, ]1 G, G$ N3 _2 y - sub_filter 'websiteplanet.com' 'websiteplanet.org';
1 Q' ~( k4 O3 g5 ~- J - sub_filter_types text/xml;. G3 F6 A, y. N
- sub_filter_once off;
, u4 P7 l. t, h. V8 E - }
复制代码 : J9 r5 W1 X2 D1 }, N7 P
' i |. H! h3 W1 D& R2 O搞定 |
|