使用域和子域映射设置Google App Engine应用的最终指南 [英] Definitive guide for setting up a Google App Engine app, with domain and sub domain mapping

查看:206
本文介绍了使用域和子域映射设置Google App Engine应用的最终指南的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将Google App Engine用于多个业余爱好项目,甚至发布了其中一些,并且设置了相关的域名,但取得了中等的成功。在少数几个应用程序中,其中一个应用程序甚至使用子域映射。

I have been used the Google App Engine for multiple hobby projects and I have even published a few of them and setup associated domains with moderate success. Of the few, one of those apps even uses sub-domain mapping.

尽管进行了多次安装尝试,我仍然在设置域名时遇到困难对于新项目,我不得不交叉引用多个帮助文章(许多在SO上找到)。有些时候,这些解决方案与我所需要的接近,因为我的应用程序设置错误或变化。

In spite of the multiple setup attempts, I have still had a bit of difficulty setting up my domains for new projects and I've had to cross-reference multiple help articles (many found on SO). Some times those solutions, however, are close to what I've needed because of setup mistakes or variations in my application.

即使有一点经验,它仍然感觉像我一起侵入域实现,因为GAE应用程序没有很好的开始到完成的设置,包括创建必要的Google Apps应用程序,App引擎应用程序,域注册和DNS设置。

Even with a bit of experience, it still feels like I'm hacking the domain implementation together because there is no good start-to-finish setup for a GAE application that involves creating the necessary Google Apps application, the App engine application, domain registration and DNS setup.

所以,有人可以提供从头到尾完成GAE应用程序的高级别步骤,具有以下要求。

So, could someone please offer a very high-level walk-through of setting up a GAE application from start to finish with the following requirements.

要求


  • 域名应指向GAE应用程序

  • 应用程序应该允许子域集成,指向不同的应用程序处理程序。

  • 可以在应用程序中轻松处理动态子域吗?如果是这样,您必须在设置过程中做些什么,以确保将所有对您的域的请求转发到GAE应用程序?

  • 转发裸体域请求转发到正确的位置。 (对此要求有多重回应,解决这一要求的最佳方法是什么。)

  • 如果您必须创建Google Apps应用程序,应该何时创建?包括在适当的地方的指导列表中。

  • A domain should point to the GAE application
  • The application should allow for sub-domain integration, pointing to different application handlers.
  • Can dynamic sub-domains be easily handled in the application? If so, what must you do in the setup process to assure that all requests to your domain are forwarded to the GAE app?
  • Forward "Naked" domain requests are forwarded to the right place. (There are multiple response to this requirement. What is the best approach to solving this requirement.)
  • If you must create a Google Apps application, when should it be created? Include this in the instruction list at the appropriate place.

同样,许多上述要求在许多论坛上被提及,包括一。通常情况下,它来自于在应用程序中设置域的问题中。如果在设置的早期阶段避免了某些陷阱,或者应用程序的要求略有修改,以解决(或与GAE的限制)。

Again, many of the above requirements have been asked on many forums, including this one. Usually it comes from someone who is in the middle of a problem setting up there domain with their application. Some of these requirements can be easily fulfilled if certain "gotchas" are avoided in the early stages of setup or application requirements are slightly modified to work around (or with) the limitations of the GAE.

简而言之,我正在寻找的是一个非常简单,直接的响应,提供了一个应用程序列表,以便使用GAE应用程序设置域。

In a nutshell, what I'm looking for is a very simple, straight forward response that provides a list of steps should be followed in order to setup a domain with a GAE application.

感谢大师。

推荐答案

所有步骤都是独立的 - 设置Google Apps帐户是无论您是否要添加App Engine应用程序,无论是否映射域,这都是相同的,其中记录了此处。域名注册和DNS设置取决于您的注册商,因此无法为其编写通用指南。同时处理应用程序中的子域名是不符合App Engine的 - 它只是标准的WSGI(或Servlet,取决于语言)。

All of the steps are independent - setting up a Google Apps account is the same whether you're going to add an App Engine app to it or not - except mapping the domain, which is documented here. Domain registration and DNS setup depends on your registrar, so it's not possible to write a universal guide to those. Handling subdomains in your app, meanwhile, is something that's not App Engine specific - it's just standard WSGI (or Servlets, depending on language).

这篇关于使用域和子域映射设置Google App Engine应用的最终指南的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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