|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
/ b [: W! e! y4 F/ S - proxy_ssl_name www.websiteplanet.com;. A( f6 x3 {% j- R" M
- proxy_ssl_server_name on;! z- b9 B5 y w4 [/ m3 G
- gzip on;
4 H# P7 \+ N) K - gzip_min_length 1k;% i0 u y/ E1 t9 ^) m, N
- gzip_buffers 4 16k;
: E, J: Z( x; [. B3 B" D - gzip_comp_level 5;
$ K+ Y1 `5 z1 ]4 N9 a - 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;
$ u8 B$ U9 {/ @% `. E- @ - gzip_vary off;
( b0 }0 ]5 h: n - proxy_redirect off;8 W" ]. t3 a! k: T
- proxy_set_header Host www.websiteplanet.com;: v5 Q# [/ z; ]; x$ N9 O
- proxy_set_header X-Real-IP $remote_addr;7 Y/ \- o( {* _' ?% o
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
% n; Z8 F. j0 a/ f! \ - proxy_pass https://www.websiteplanet.com;
6 k2 T# m) {# \/ |- Z/ s F% [" r - proxy_set_header Accept-Encoding "";. ]3 B, Q$ O7 t5 {. Q; u& x4 R% ]6 K
- sub_filter 'websiteplanet.com' 'websiteplanet.org';
! @, _9 _( ?9 z) E9 e6 s; q7 a7 m - sub_filter_types text/xml;9 ^% `& g7 D: s% [, c
- sub_filter_once off;
, Z1 U% }& @0 s. [ - }
复制代码 , M/ ~, J2 e# G; k) I8 c
; J/ w9 R9 ?3 S2 S3 g8 a
搞定 |
|