|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {- {7 V5 j& I! |0 M9 U( K5 U
- proxy_ssl_name www.websiteplanet.com;! _4 a% B9 A% q5 {
- proxy_ssl_server_name on; q3 j& @) L# V& G5 Z% P2 E/ J+ H
- gzip on;
6 n c M7 m7 @$ J - gzip_min_length 1k;! |7 d2 y# @( J! b* }4 Y2 d
- gzip_buffers 4 16k;* a0 f! R, F1 ?& R7 S( Z
- gzip_comp_level 5;
0 N6 W3 c0 A, @# x$ m - 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;
" c7 C+ e. } `4 h7 }( t - gzip_vary off;. X- K) M$ S4 u4 D. T2 N0 D
- proxy_redirect off;2 k! v) O( c" ~4 u: A
- proxy_set_header Host www.websiteplanet.com;( w, |! A) w+ U/ U
- proxy_set_header X-Real-IP $remote_addr;& t! c$ O5 F, H% U7 W" R" o0 C
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;. B; k$ i/ j9 N8 C4 `# }7 N/ y& b; o
- proxy_pass https://www.websiteplanet.com;; g1 Z8 C O4 F' [+ }) S6 e; [/ a* |7 O
- proxy_set_header Accept-Encoding "";
, G/ C. S; G. j0 [7 I0 ?' r - sub_filter 'websiteplanet.com' 'websiteplanet.org';
( C6 r" o7 ~$ [. n - sub_filter_types text/xml;
6 H* \6 ~, e l. @ w0 c# g& T - sub_filter_once off;
( r1 m" R) }% V6 m: X - }
复制代码 4 g4 X( V Y) _; d) o" s- |
/ x) |0 Z3 M, H2 x
搞定 |
|