自动重定向谷歌应用引擎 [英] Automatic redirection google app engine

查看:112
本文介绍了自动重定向谷歌应用引擎的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用自定义网址配置了Google应用引擎。我在我提供的dns中添加了一个新的cname条目,如下所示:

 应用程序CNAME ghs.googlehosted.com。 

每次输入网址 app.website.com ,我自动重定向到预览网址 https://20161211t143424-dot-dfsf-151819.appspot-preview.com 。这真的很烦人,我如何在我的自定义网址中使用我的应用程序?我需要使用https?



您可以在这里看到这样的行为: http://app.e-writer.io/

解决方案

这似乎是(新)灵活环境的默认行为。从域更新(强调我的):


现在,流量现在从 appspot-preview.com 域名而不是
appspot.com 域名。来自App Engine灵活
环境的所有流量将自动重定向到新域。所有
App Engine标准流量将继续通过 appspot.com
当App Engine灵活的环境通用(GA)时,
的用户将能够使用 appspot.com appspot-preview.com
用于路由流量的域名。



对于想要使用最新App Engine的用户灵活发布
a自定义域名,请填写此表单与我们联系


看起来您必须使用上述引用的表单联系他们。



您可以可以切换到以前的灵活env版本(即在<$ c $中使用 vm:true C>的app.yaml )。但是现在的文档可能很少,我甚至不确定是否允许自定义域工作(我没有使用任何flex env,所以这只是一个理论)。


I've configured my google app engine with a custom url. I added a new cname entry in my dns provided which look like this:

app CNAME   ghs.googlehosted.com.

Every time I enter the url app.website.com, I get automatically redirected to the preview url https://20161211t143424-dot-dfsf-151819.appspot-preview.com. This is really annoying, how can I use my app in my custom url? Do I need to use a https?

You can see the behaviour here : http://app.e-writer.io/

解决方案

This seems to be the default behaviour for the (new) flexible environment these days. From Domain update (emphasis mine):

Traffic is now served from the appspot-preview.com domain instead of the appspot.com domain. All traffic from the App Engine flexible environment will be automatically redirected to the new domain. All App Engine Standard traffic will continue to be through appspot.com. When the App Engine flexible environment is generally available (GA), users will be able to use the appspot.com or appspot-preview.com domains for routing traffic.

For users who want to use the latest App Engine Flexible release with a custom domain, please fill out this form to contact us.

Looks like you have to contact them using the above referenced form.

You might be able to switch to the previous flexible env version (i.e. using vm:true in the app.yaml). But documentation for that may be scarce now and I'm not even sure if it'll allow the custom domain to work (I didn't use any of the flex env yet, so this is just a theory).

这篇关于自动重定向谷歌应用引擎的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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