http route url parts to different server

梦想的初衷 提交于 2019-12-25 00:53:19

问题


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:


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.



来源:https://stackoverflow.com/questions/46571068/http-route-url-parts-to-different-server

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!