Say I have a http://www.foo.com domain which is setup to load my app on foo.appspot.com
How do I set things up so that the site can be accessed with any sub-domain (such as user.foo.com)? And then how do I understand in my app that the request has a sub-domain with a value of user?
I’m just not sure what modifications I need to make in my DNS, and also what modifications I need to make in my code to read the subdomain.
Maybe there’s an easier way, where all user.foo.com requests actually load (not redirect) foo.appspot.com/user, in which case it would be very straightforward to handle in my code.
I’m just not sure how to make these modifications – but essentially what I’m trying to achieve is that each of my users gets their own subdomain.
You need to look for wildcard CNAME, there is some info about this in the App Engine docs, but if I recall correctly not all DNS providers support that.
Also you can’t (without a redirect) map {user}.domain.com to http://www.domain.com/{user}.