我已经使用自定义 URL 配置了我的谷歌应用引擎。我在提供的 dns 中添加了一个新的 cname 条目,如下所示:
app CNAME ghs.googlehosted.com.
每次我输入 url app.website.com
时,我都会自动重定向到预览 url https://20161211t143424-dot-dfsf-151819.appspot-preview.com
。这真的很烦人,我怎样才能在我的自定义 url 中使用我的应用程序?我需要使用 https 吗?
您可以在此处查看行为:http://app.e-writer.io/
最佳答案
这似乎是最近(新)柔性环境的默认行为。来自 Domain update (强调我的):
Traffic is now served from the
appspot-preview.com
domain instead of theappspot.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 throughappspot.com
. When the App Engine flexible environment is generally available (GA), users will be able to use theappspot.com
orappspot-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.
看来您必须使用上面提到的表格与他们联系。
您可能能够切换到以前的灵活 env 版本(即在 app.yaml
中使用 vm:true
)。但是现在相关的文档可能很少,我什至不确定它是否允许自定义域工作(我还没有使用任何 flex env,所以这只是一个理论)。
关于google-app-engine - 自动重定向谷歌应用引擎,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41091215/