Linux命令 Nginx反向代理 Google


原文链接: Linux命令 Nginx反向代理 Google
<html>
<meta http-equiv="refresh" content="0;url=http://www.baidu.com/">
</html>

location /wmb {
if ( $request_uri = "/wmb/" ) {

  rewrite "/wmb/" /wmb/weibo.html break;

}
proxy_redirect off;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_pass http://10.29.164.2:9008;
}

`