|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {# ^2 k! N9 c2 `
- proxy_ssl_name www.websiteplanet.com;
, t4 Q. `5 |. E0 c6 ]$ l# G - proxy_ssl_server_name on;
& n) i, h0 g# z: u" `! C6 X& x - gzip on;( |& f! @3 W3 Y& H$ P
- gzip_min_length 1k;
/ F d: ]7 B( Z0 Q3 V- a9 f/ H - gzip_buffers 4 16k;* m& ]. ?7 Z8 D1 v8 Q
- gzip_comp_level 5;
6 X+ j* V& B) ]" a/ h; y. I" | - 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;
8 y1 C j* v3 n! P" @ - gzip_vary off;
6 V5 A, J1 ~; M! \( w" J& E' ^ - proxy_redirect off;- r9 j2 }# B, s% a. M
- proxy_set_header Host www.websiteplanet.com;& j9 t. N( q; S" r& O8 e; ~8 F
- proxy_set_header X-Real-IP $remote_addr;* l( P L* p% `' X, i
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
. u: M( A; v( r/ [+ w ` - proxy_pass https://www.websiteplanet.com;! R7 O. d! w$ [- j. w- L1 d
- proxy_set_header Accept-Encoding "";
$ G' r l5 p. M/ X( P3 p - sub_filter 'websiteplanet.com' 'websiteplanet.org';/ R. C+ x/ I! W
- sub_filter_types text/xml;
2 N- Y5 M# |% p( E& a - sub_filter_once off;) F: N$ E Z3 c7 T7 Z
- }
复制代码 # O0 R( O% U/ t: m1 @' g
: L; O+ M% ~" G5 N5 g) i搞定 |
|