|
|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
q' l2 a8 V L" y- o/ q - proxy_ssl_name www.websiteplanet.com;9 j: ^1 O& T$ ?+ b0 z$ }8 X, w
- proxy_ssl_server_name on; m0 X% ]* \5 o1 Z2 u. e
- gzip on;
& f, p4 u$ E/ p6 x* E0 |9 y - gzip_min_length 1k;; o3 ]4 k/ H- ^, H8 b# f9 h
- gzip_buffers 4 16k;2 @6 d" v* V8 s+ B
- gzip_comp_level 5;
2 N' S3 u- R* o - 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;
& E, n( w; ^' Z" V% n# |& P; t* q - gzip_vary off;, e4 I B+ W/ T! F( e, o" U! t
- proxy_redirect off;
9 A* i# j3 l: E- n2 u; O) C$ U- N! R - proxy_set_header Host www.websiteplanet.com;
. K, s, G6 c; y( ~ - proxy_set_header X-Real-IP $remote_addr;# s6 E" q! x# f/ P6 B1 w2 E7 z
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;+ M4 r; U- s r4 X
- proxy_pass https://www.websiteplanet.com;
, B1 r0 O8 D$ R- N# o+ L - proxy_set_header Accept-Encoding "";7 S3 n/ Q) h/ G" P
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
6 }" _* F- q$ X2 r5 D# B - sub_filter_types text/xml;1 {, k7 Z2 J$ _0 a
- sub_filter_once off;* h* s) ^' p) L. O* F2 n" {* ?7 P
- }
复制代码 0 G5 y" B) _% n4 K) H; h
0 p$ G& X% D1 C+ W搞定 |
|