|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {, M) J0 \* `% J% S; _% b
- proxy_ssl_name www.websiteplanet.com;# ~+ x q% L, t. z. s
- proxy_ssl_server_name on;, |- ~: B& i3 L9 a/ Y* k
- gzip on;3 P/ x: i; |+ q* A. _/ f4 m7 v% M
- gzip_min_length 1k;
. ?$ ^% W" {) Z( ^& Z - gzip_buffers 4 16k;
2 q) E- k3 X3 z2 W; y Q! F - gzip_comp_level 5;
2 h; i" T: X8 B) @ - 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;
3 S; ~) E" v( ~. x; c5 B3 h - gzip_vary off;, R1 a \1 U4 g3 Y$ c
- proxy_redirect off;5 D/ m3 s1 `: P; Q: U+ B7 b
- proxy_set_header Host www.websiteplanet.com;4 K' ?. b, c7 r$ S8 C1 J& h) `
- proxy_set_header X-Real-IP $remote_addr;7 ?' j: I* k! d b
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;) G0 c2 _* S* R6 s3 O3 }
- proxy_pass https://www.websiteplanet.com;, T( w6 I; O: ~( ^+ a E1 O
- proxy_set_header Accept-Encoding "";
0 U9 q$ A' t6 o% Y9 v - sub_filter 'websiteplanet.com' 'websiteplanet.org';- l6 X. \. a: r# S" J# n
- sub_filter_types text/xml;
) R5 ~# H1 g3 n: j/ K2 S - sub_filter_once off;8 R: j) n2 B+ f3 Z; U$ m5 e$ }# ^% R D- @
- }
复制代码
9 l2 T* c% _' X! X: N% f" w+ ?
7 ~' q" d% _3 F* \, z6 [搞定 |
|