娇w兴 发表于 2018-11-9 07:27:08

nginx geo 模块实现全局负载均衡

  location / {
  proxy_redirect off;
  proxy_set_header Host $host;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_pass http://$geo.server$request_uri;
  }
  error_page   500 502 503 504/50x.html;
  location = /50x.html {
  root   html;
  }

页: [1]
查看完整版本: nginx geo 模块实现全局负载均衡