求个 nginx 的配置文件,反代 things 的云服务, things 的云服务是在 GAE 上面的,我的好像不对

2015-03-05 14:42:14 +08:00
 1dian01
server {

listen 80;
server_name 106.186.*.*;

location / {

proxy_pass http://multithreaded.thingscloud.appspot.com;

}
}


server {

listen 80;
server_name 106.186.*.*;

location / {

proxy_pass http://thingscloud.appspot.com;

}
}
1684 次点击
所在节点    问与答
3 条回复
TONYHEAD
2015-03-05 16:30:01 +08:00
server {
server_name 你的域名.com;
location / {
proxy_pass http://thingscloud.appspot.com/;
}
}
1dian01
2015-03-05 16:35:07 +08:00
@TONYHEAD 其实我是想反代到ip,然后通过修改hosts,让things连接gae
#things
216.58.208.100 multithreaded.thingscloud.appspot.com
216.58.208.100 thingscloud.appspot.com
ryd994
2015-03-05 17:47:25 +08:00
@1dian01 server_name 填目标域名。你现在这样不是重复了么?能行才怪

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/174673

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX