|
楼主 |
发表于 2022-9-26 19:45:06
|
显示全部楼层
- location / {
3 w$ N5 O6 I! ?, `6 ~* k4 A8 A4 T/ v! q - proxy_ssl_name www.websiteplanet.com;, \" x2 @% L. a( c
- proxy_ssl_server_name on;3 Z1 V# {- g: i9 X0 p
- gzip on;: ]9 v S. {! q7 o
- gzip_min_length 1k;. p p( ]6 x1 \$ a% c( w
- gzip_buffers 4 16k;/ m! U: @' z; N4 J. I/ S
- gzip_comp_level 5;( e' _, V2 }" ~' D8 |
- 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;
- T; I5 D8 \; P - gzip_vary off;; X/ U* p2 B& u: K
- proxy_redirect off;- j b/ x3 ?! `
- proxy_set_header Host www.websiteplanet.com;5 j- D5 r& U0 N) x: v! I5 ]! K
- proxy_set_header X-Real-IP $remote_addr;; H n3 ]8 \- {+ N m) m
- proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;6 |/ _' B* P# q1 ]7 u
- proxy_pass https://www.websiteplanet.com;( F* p$ n3 |, Q! q6 l# m
- proxy_set_header Accept-Encoding "";
# i/ Y) w* U& N& h0 _3 h( Z, y m5 M - sub_filter 'websiteplanet.com' 'websiteplanet.org'; r. O6 ~9 K% j% D" h
- sub_filter_types text/xml;4 ?. V; z* ^- I5 u5 k
- sub_filter_once off;
' c& t* z+ H$ }4 l* \( c9 m - }
复制代码 f4 y* C& ?2 G' t, m
# E4 R7 p: K+ a" m- y8 e搞定 |
|