Just use the HttpServletRequest.getServerName() method and parse the
sub domain out. On the local server perhaps you could just use a
query parameter instead to override the sub domain or set up an entry
in your hosts file like "127.0.0.1 user.domain.com"
On 4 Mar 2010, at 04:25, DutrowLLC wrote:
I would like to use subdomains to create dynamic content
For example, I would like for users to be able to sign up online and
then to be able to access their accounts via a subdomain in this
fashion:
www.their_user_id.mywittydomainname.com
Then in the application, I could display a personal login page based
on "their_user_id".
How would I go about doing this? Would this work when debugging
locally?
Thanks!
Chris
--
You received this message because you are subscribed to the Google
Groups "Google App Engine for Java" group.
To post to this group, send email to [email protected]
.
To unsubscribe from this group, send email to [email protected]
.
For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en
.
--
You received this message because you are subscribed to the Google Groups "Google
App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.