设置 Google App Engine 应用程序(包含域和子域映射)的权威指南
我已经将 Google App Engine 用于多个业余爱好项目,我什至发布了其中一些项目并设置了相关域,并取得了一定的成功。在少数应用程序中,其中一个应用程序甚至使用子域映射。
尽管进行了多次设置尝试,我在为新项目设置域时仍然遇到一些困难,并且我不得不交叉引用多篇帮助文章(许多在 SO 上找到)。然而,有时由于设置错误或应用程序的变化,这些解决方案接近我所需要的。
即使有一点经验,我仍然感觉像是在一起破解域实现,因为 GAE 应用程序没有良好的从头到尾的设置,其中涉及创建必要的 Google Apps 应用程序、App 引擎应用程序、域注册和 DNS 设置。
那么,有人可以提供一个非常高级的演练,从头到尾设置 GAE 应用程序,并满足以下要求。
要求
- 域应指向 GAE 应用程序
- 应用程序应允许子域集成,指向不同的应用程序处理程序。
- 动态子域可以在应用程序中轻松处理吗?如果是这样,您必须在设置过程中执行哪些操作才能确保对您的域的所有请求都转发到 GAE 应用程序?
- 转发“裸”域请求被转发到正确的位置。 (对此要求有多种响应。解决此要求的最佳方法是什么。)
- 如果您必须创建 Google Apps 应用程序,那么应该何时创建它?将其包含在指令列表中的适当位置。
同样,上述许多要求已在许多论坛上提出,包括这个论坛。通常,它来自于在使用其应用程序设置域时遇到问题的人。如果在设置的早期阶段避免某些“陷阱”,或者稍微修改应用程序要求以解决(或解决)GAE 的限制,那么其中一些要求就可以轻松满足。
简而言之,我正在寻找的是一个非常简单、直接的响应,它提供了使用 GAE 应用程序设置域时应遵循的步骤列表。
谢谢各位大师。
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.
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.
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.
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.
Requirements
- 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.
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.
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.
Thanks gurus.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
所有步骤都是独立的 - 无论您是否要向其中添加 App Engine 应用程序,设置 Google Apps 帐户都是相同的 - 除了映射域(记录在案) 此处。域名注册和 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).