问题
I'm looking to give my GAE app a custom domain. Would I still be able to use wildcard subdomains in the same way I am now with the myapp.appspot.com domain?
For example, if I navigate to wildCardSub.myapp.appspot.com I am able to grab the wildcard subdomain and SSL all works fine without any problems.
If I were to change to a custom domain and navigate to wildCardSub.myNewDomain.com, would everything work the same? What about SSL? Would I have to set anything other than the custom domain up?
I was looking to set up a similar structure to appspot.com, where each user is just given a subdomain of the main domain. For example userName.myDomain.com.
Any insight is appreciated! Thanks!
回答1:
- Yes you will be able to use subdomains with wildcard mapping. Note that subdomain name has to match version name.
- You will need to have proper SSL certs, for specific subdomains. Double subdomain certs, e.g.
*.*.domain.com, are not supported by browsers anymore. Single wildcard certs are ok. - AFAIK, you can not "move" subdomain to top level, e.g.
wildCardSub.myNewDomain.com. You have to usewildCardSub.modulename.myNewDomain.com. You can do custom mapping, but not a wildcard mapping.
来源:https://stackoverflow.com/questions/23707931/google-app-engine-custom-domains-subdomains-and-ssl