|
|

楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {4 x3 J* H, l S! T/ y4 K2 O
- proxy_ssl_name www.websiteplanet.com;1 O2 ~" \; r( Y* W. N
- proxy_ssl_server_name on;
3 O2 _; o* U3 G3 m: Y( R/ W - gzip on;
; W {0 t3 X% q# H) c - gzip_min_length 1k;
( O& z* Y% s( O% } - gzip_buffers 4 16k;
6 Q0 k# q7 A# v# l7 l - gzip_comp_level 5;" i0 a" u( x4 B& e1 e- Z
- 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$ i. a4 j' w8 j' s+ ?. C/ `# u! ] - gzip_vary off;) \, f! o H; {6 A
- proxy_redirect off;
% ?) @8 s9 j5 e6 { - proxy_set_header Host www.websiteplanet.com;5 L1 P; D9 }, O/ J. w! r; {
- proxy_set_header X-Real-IP $remote_addr;
- D- _0 W4 }( S3 j5 O - proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
& o' {7 q/ }* [" A ~& ~ - proxy_pass https://www.websiteplanet.com;
1 ]1 U6 Q: f4 s/ x c/ a+ A - proxy_set_header Accept-Encoding "";
/ G. e9 z2 |' R, b3 e - sub_filter 'websiteplanet.com' 'websiteplanet.org';7 O% \! P" O0 S2 l) k# O
- sub_filter_types text/xml;
$ G( I7 N, S/ i$ q - sub_filter_once off;; R- T; b+ s+ G$ S! _9 ?
- }
复制代码 m- y, w1 h- d" o+ |$ T( }
! M1 T# Z, O( V! U+ h( v
搞定 |
|