1dian01
V2EX  ›  问与答

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

  •  
  •   1dian01 · Mar 5, 2015 · 2177 views
    This topic created in 4180 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
        1
    TONYHEAD  
       Mar 5, 2015
    server {
    server_name 你的域名.com;
    location / {
    proxy_pass http://thingscloud.appspot.com/;
    }
    }
    1dian01
        2
    1dian01  
    OP
       Mar 5, 2015
    @TONYHEAD 其实我是想反代到ip,然后通过修改hosts,让things连接gae
    #things
    216.58.208.100 multithreaded.thingscloud.appspot.com
    216.58.208.100 thingscloud.appspot.com
    ryd994
        3
    ryd994  
       Mar 5, 2015
    @1dian01 server_name 填目标域名。你现在这样不是重复了么?能行才怪
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5078 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 08:52 · PVG 16:52 · LAX 01:52 · JFK 04:52
    ♥ Do have faith in what you're doing.