|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
" r5 g# }" M+ B3 y3 O9 x# R" r6 N - proxy_ssl_name www.websiteplanet.com;
& T' {" [) ]0 z! w7 d - proxy_ssl_server_name on;
/ f+ {8 ~% j5 p4 ]+ j0 }) G - gzip on;
: C, M P* e$ d. j e, U% Z; A - gzip_min_length 1k;
, j2 ^% P' V" q9 g' D - gzip_buffers 4 16k;
. G9 m, Z* H1 B* | - gzip_comp_level 5;
. `% G u- _* J - 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;
. K5 E. R+ y1 e7 D/ J1 O9 H - gzip_vary off;6 E% t0 |' B6 L5 L/ m0 A$ @
- proxy_redirect off;
" Y" g3 z, n, X# R7 [ - proxy_set_header Host www.websiteplanet.com;; j8 \+ v# t& D4 T; J& u7 m. N
- proxy_set_header X-Real-IP $remote_addr;
7 z9 @- D' f7 L b( h5 ? - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
+ r% J$ J5 i( i, [; ` - proxy_pass https://www.websiteplanet.com;* l6 A/ j8 p3 a9 S
- proxy_set_header Accept-Encoding "";
0 v% m2 n: \0 Y$ J5 j; L' D - sub_filter 'websiteplanet.com' 'websiteplanet.org';
/ ^/ w" D9 Q: w - sub_filter_types text/xml;6 g* ], i1 p+ N9 m$ N% Z e
- sub_filter_once off;
! W7 P3 s- [* ]6 p - }
复制代码 6 t7 {' \6 S1 v' Z; J5 G
i" G" [9 a* E3 h5 }4 c
搞定 |
|