nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /usr/local/etc/nginx/nginx.conf:49
需要吧
proxy_pass http://foo.bar/;
改成
proxy_pass http://foo.bar;