|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
6 l. L( o: p9 d$ d - proxy_ssl_name www.websiteplanet.com;
m5 H4 ?9 D. U - proxy_ssl_server_name on;: d0 Z' n8 J1 V6 \( a, a, i; K
- gzip on;
~9 X6 J, S+ `, v& s - gzip_min_length 1k;
5 [) O0 l$ h) n- P6 d1 Q+ i! t1 n - gzip_buffers 4 16k;" U8 A/ r+ p, F6 ?
- gzip_comp_level 5;0 J% @3 D2 x9 s0 _) X0 b* S$ g& u
- 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;! h" p0 g8 w. `5 K9 P, Q0 V; }
- gzip_vary off;
0 V; y; W! c/ o6 Z7 P O9 b - proxy_redirect off;
9 r+ t2 d! H- Q8 G1 ^. `# e3 N - proxy_set_header Host www.websiteplanet.com;. M& Q. Z" Z6 _' L- w- _# ^
- proxy_set_header X-Real-IP $remote_addr;
4 x c. x- s- [3 Y! c0 j - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
. m+ E/ r# M$ y7 X4 O - proxy_pass https://www.websiteplanet.com;# C/ K/ U' h0 T$ j3 w% _
- proxy_set_header Accept-Encoding "";
4 `: v E! _$ J9 h! Q) C - sub_filter 'websiteplanet.com' 'websiteplanet.org';
W8 S; p/ l- e9 N" G0 v* V# j - sub_filter_types text/xml;; M% a2 v3 O1 k2 r
- sub_filter_once off;* X" r; ~3 \1 D) Y
- }
复制代码 ( |- E; w. n" ?# ]3 ~- x
, X$ F0 x5 o( l$ z( ]2 ]6 p0 O搞定 |
|