1dian01
V2EX  ›  问与答

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

  •  
  •   1dian01 · Mar 5, 2015 · 2302 views
    This topic created in 4283 days ago, the information mentioned may be changed or developed.
    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 replies  •  2015-03-05 17:47:25 +08:00
    TONYHEAD
    TONYHEAD
    Mar 5, 2015
    1
    server {
    server_name 你的域名.com;
    location / {
    proxy_pass http://thingscloud.appspot.com/;
    }
    }
    1dian01
    1dian01
    OP
    Mar 5, 2015
    2
    @TONYHEAD 其实我是想反代到ip,然后通过修改hosts,让things连接gae
    #things
    216.58.208.100 multithreaded.thingscloud.appspot.com
    216.58.208.100 thingscloud.appspot.com
    ryd994
    ryd994
    Mar 5, 2015
    3
    @1dian01 server_name 填目标域名。你现在这样不是重复了么?能行才怪
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4841 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 02:27 · PVG 10:27 · LAX 18:27 · JFK 21:27
    ♥ Do have faith in what you're doing.