doubi1910 2017-10-04 17:46
浏览 33
已采纳

http路由url部分到不同的服务器

I'm not sure what the correct verbiage is for this question, but here it goes.

I want to set up two web applications. One is based on golang and the other is apache/php (wordpress)

These applications will be hosted as separate google cloud platform API engines.

I would like these to be published under the same domain, so for example the main golang app URL would be www.mygolangapp.com and the wordpress url would be www.mygolangapp.com/blog

I'm thinking I may need to setup a google VPC network. Could anyone confirm this, and/or provide better options?

  • 写回答

1条回答 默认 最新

  • dskpywvki951583595 2017-10-04 18:25
    关注

    The choice of options depends on which compute system you are using:

    • Google App Engine - GAE has build in request routing which allows you to have different URLs served by different "modules" or "versions".

    • Google Compute Engine - on GCE you can use Cloud HTTP Load Balancing to do Content-Based Load Balancing to send different paths to different instance groups.

    • Google Container Engine - on GKE you can create an Ingress with fanout, to send different paths to different pods.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥88 error: [polling_error] {"code":"ETELEGRAM","message":"ETELEGRAM: 502 Bad Gateway"}错误
  • ¥15 运行代码哪里需要更改或者增加,求解
  • ¥15 基于matab语言描述表示泥浆密度沿着管路的长度方向在不断变化根据上述描述表示泥浆密度沿着管路的长度方向在不断变化,如何来表示泥浆密度随管路流速的变化
  • ¥15 刚毕业,刚通过一家PLC工程师,请问一下待遇还算可以吗?
  • ¥15 Spring Boot
  • ¥15 一个小程序关于简单的增删改查
  • ¥15 公司内网,想基本不写代码挂一些视频,有一个还不错的前端展示,有什么软件或者框架可以用吗?尽量简单
  • ¥15 appium自动化测试
  • ¥30 java怎么解析CanFD的16进制数据
  • ¥15 广义可加模型和光滑曲线拟合的R代码