|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {! @5 V# n" T7 g* Z, {9 x% n x
- proxy_ssl_name www.websiteplanet.com;2 y- h2 S5 B, D7 L7 ?3 P
- proxy_ssl_server_name on;
1 s7 w# J. }3 n - gzip on;
7 v) b( ?# m5 g* \' Q - gzip_min_length 1k;
* F" q; k7 q: [2 t& N - gzip_buffers 4 16k;/ ~+ k' _3 P* B3 n
- gzip_comp_level 5;4 Z' L ^) B! v8 C! g
- 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;, Y& Z- P& ^' e0 d
- gzip_vary off;
: _" f6 R3 @9 P1 D# l3 A) y - proxy_redirect off;
0 [% ?: B1 U: R+ G2 ^3 g( g - proxy_set_header Host www.websiteplanet.com;7 p! N: P& M/ _* ^3 w5 w# N7 q
- proxy_set_header X-Real-IP $remote_addr; x- ~6 U9 Z- s% t- D9 b
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
. Y1 h6 X9 P* h$ G( _9 g - proxy_pass https://www.websiteplanet.com;' {0 I" S: r; u& y" _
- proxy_set_header Accept-Encoding "";
! @$ J4 I* X7 v1 n8 z - sub_filter 'websiteplanet.com' 'websiteplanet.org';2 {2 |' |. _: L, o; e8 b) a* e6 t5 P
- sub_filter_types text/xml;
+ ^7 k7 d9 s7 @# a# z2 n - sub_filter_once off;
+ L$ w$ p1 p8 |( ^ X& u7 d% U - }
复制代码 ! |+ }, T" d+ m$ F1 V- J1 s/ z
( |) [# l3 ^8 n% r
搞定 |
|