|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
/ d! u) ~+ m8 t$ d - proxy_ssl_name www.websiteplanet.com;
3 p+ {8 l" {) D2 i3 D - proxy_ssl_server_name on;
& a* m, f2 a. V9 q. o - gzip on;/ m- v' H {: N9 ^1 t2 T
- gzip_min_length 1k;
' A4 E* ?0 n. m# N" f: d2 | - gzip_buffers 4 16k;
& J" l- P: L/ P: D; ~* n* C! j0 _ - gzip_comp_level 5;
& {1 g; T; g9 [; ], R0 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;) O2 a7 T2 A* B% o5 V* D
- gzip_vary off;
. v$ d: n" [+ [9 Z% u$ j) F* S - proxy_redirect off;6 P% {8 U& O& F$ X4 P
- proxy_set_header Host www.websiteplanet.com;
2 w& K) w) d5 X9 Y/ E - proxy_set_header X-Real-IP $remote_addr;
$ f) c% O! G% Y* H - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
/ }" Z) b, }7 G+ i: v - proxy_pass https://www.websiteplanet.com;/ g0 ?" k, z, }6 a
- proxy_set_header Accept-Encoding "";
( C& p6 P# i3 _( u - sub_filter 'websiteplanet.com' 'websiteplanet.org';$ e" v" A; p0 ]0 o2 P
- sub_filter_types text/xml;
" e" k% @: d2 ~& r$ h) } - sub_filter_once off;
( g% o0 U4 |: |( L4 b. ]5 C, V8 e - }
复制代码
# c# s% E9 r9 f( A% C. p2 w. h: p, Z1 p( k; q+ F
搞定 |
|