|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {; m) N) [9 t0 \5 }9 O8 C
- proxy_ssl_name www.websiteplanet.com;* r" i; x. z# X$ R1 C
- proxy_ssl_server_name on;
7 r/ m- M, F3 q, i - gzip on;) x. O0 v- l# E7 m
- gzip_min_length 1k;' R+ F% N/ `% u! j
- gzip_buffers 4 16k;4 q9 H. ?# [2 K/ X: x
- gzip_comp_level 5;
$ T; e# ^/ J; F! m# Z$ m# r - 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;/ v h6 r1 G4 c8 Q+ v3 r8 i
- gzip_vary off;; \- m) i# B$ @/ a% d1 s1 \5 }
- proxy_redirect off;
1 G* |9 R* e, d3 C - proxy_set_header Host www.websiteplanet.com;
& R: e3 O2 R9 ?9 _& | - proxy_set_header X-Real-IP $remote_addr;* `6 |; j. ?0 j8 S) }3 _/ c4 F
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
! _# n7 m% \( C- E5 m O - proxy_pass https://www.websiteplanet.com;9 [' P' a7 y5 ~4 S, V0 X
- proxy_set_header Accept-Encoding "";
' J- Z( N5 C' w4 e! q% t) \ - sub_filter 'websiteplanet.com' 'websiteplanet.org';8 l2 e) K% h J$ `8 d
- sub_filter_types text/xml;
. P( x4 @1 e% a! @ - sub_filter_once off;
: E+ E& \. t& S \ - }
复制代码
4 {- P8 K! B( P" ^, `9 T7 n S+ ^0 K9 J
: M8 f( F8 y# @: j1 V搞定 |
|