V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
1dian01
V2EX  ›  问与答

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

  •  
  •   1dian01 · 2015-03-05 14:42:14 +08:00 · 1668 次点击
    这是一个创建于 3349 天前的主题,其中的信息可能已经有所发展或是发生改变。
    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;

    }
    }
    3 条回复    2015-03-05 17:47:25 +08:00
    TONYHEAD
        1
    TONYHEAD  
       2015-03-05 16:30:01 +08:00
    server {
    server_name 你的域名.com;
    location / {
    proxy_pass http://thingscloud.appspot.com/;
    }
    }
    1dian01
        2
    1dian01  
    OP
       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
        3
    ryd994  
       2015-03-05 17:47:25 +08:00
    @1dian01 server_name 填目标域名。你现在这样不是重复了么?能行才怪
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2433 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 10:39 · PVG 18:39 · LAX 03:39 · JFK 06:39
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.