http将网址部分路由到其他服务器 [英] http route url parts to different server

查看:86
本文介绍了http将网址部分路由到其他服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我不确定该问题的正确用法是什么,但是在这里。

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

我要设置两个Web应用程序。一个基于golang,另一个基于apache / php(wordpress)

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

这些应用程序将作为单独的Google云平台API引擎托管。

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

我希望这些内容可以在同一个域中发布,例如,主要的golang应用程序网址为www.mygolangapp.com,而wordpress网址为www.mygolangapp.com/blog

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

我想我可能需要设置一个Google VPC网络。任何人都可以确认这一点,和/或提供更好的选择吗?

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

推荐答案

选项的选择取决于您所使用的计算系统:

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


  • Google App Engine-GAE已内置在请求路由,它使您可以由不同的模块或版本提供不同的URL。

  • 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-在GCE上,您可以使用Cloud HTTP Load Balancing执行基于内容的负载平衡以将不同的路径发送到不同的实例组。

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容器引擎-在GKE上,您可以创建带有扇出的入口,以将不同的路径发送到不同的Pod。 / p>

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

这篇关于http将网址部分路由到其他服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆