Automation of the substitution subdomain for GAE users

I have an application kernel instance project, for example: cloud.domain.com

My goal is to provide the user with my unique URL, which they can then map to their own domain using the CNAME record. Basically, how do you connect to a domain for a squares account .

It could be anything:

 userid.cloud.domain.com userid.domain.com 

Is this possible with GAE? I have studied wildcard matching, but there really aren't any solid tips on this topic.

Is this possible, or should I look elsewhere for this task?

+5
source share
1 answer
  • You need a domain host that allows you to configure wildcards in DNS records
  • Create a CNAME for * .mydomain.com (or * .sub.mydomain.com) by pointing to ghs.googlehosted.com
  • In the App Engine section of the Cloud Console in the settings / user domains, add a custom domain (you will need to verify ownership by adding a TXT record).
  • After verification, add * .mydomain.com (or * .sub.mydomain.com) to the point section
  • Webapp2 in Python has a DomainRoute function for connecting this code at the code level, you will need to find the equivalent of PHP
+4
source

Source: https://habr.com/ru/post/1245835/


All Articles