|
|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
% i' i& J% J/ ?& j2 M% ~3 e) k - proxy_ssl_name www.websiteplanet.com;
* y7 f U$ Q( W W8 n @! } - proxy_ssl_server_name on;# I. L5 v1 R0 a3 U! U9 d0 i
- gzip on;: U( P/ M, h( W5 x+ k
- gzip_min_length 1k;: H0 p1 W K3 J
- gzip_buffers 4 16k;
8 j. R1 i% Q6 K' c - gzip_comp_level 5;8 x5 t' {0 _! a6 P1 Z/ o
- 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;* |" a: ^1 u! G( b8 w% S+ A! w& w4 N
- gzip_vary off;
0 ]. D, r: J3 V, g) m - proxy_redirect off;4 u/ S2 W# t" d; z& a
- proxy_set_header Host www.websiteplanet.com;
6 u3 V" g4 |, O; ?" ] - proxy_set_header X-Real-IP $remote_addr;% i' p! \9 f8 v2 t
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;' S: z; a" a1 K; ~
- proxy_pass https://www.websiteplanet.com;
( k, o+ Y2 m# z - proxy_set_header Accept-Encoding "";
; ]# Z/ T9 f M; Q0 M4 z - sub_filter 'websiteplanet.com' 'websiteplanet.org';
; d! B. s5 W' u* |, ^* o8 H$ _ - sub_filter_types text/xml;
. F0 h5 c" L% u( b& ?+ M - sub_filter_once off;
0 ?8 u q* T- B1 e7 b' d - }
复制代码
$ c- _' F$ [ o2 F7 W2 z+ l1 M" |6 `! C! U' }# J' U' W
搞定 |
|