Mobile app version of vmapp.org
Login or Join
Jessie594

: How do I develop a software product with multiple dynamic sub-domains? I am currently working on a twitter clone. How do I make it like Tumblr where a subdomain is created for each user that

@Jessie594

Posted in: #Subdomain #WebApplications

I am currently working on a twitter clone. How do I make it like Tumblr where a subdomain is created for each user that creates a blog? I would plan to show the user feed there, with posts from the users he follows.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Jessie594

1 Comments

Sorted by latest first Latest Oldest Best

 

@LarsenBagley505

The first step would be to setup your web server, using Apache as an example you would load your application to the default web root which would mean that all connections to the web server regardless of domain name would be handled by your application. The next step would be to configure your software to get the domain name from Apache (which depends on the language you are using and is a programming question not a webmaster question), then you would create a wildcard DNS record which points to your web server. At that point every single sub domain entry would be directed to your application. This has the benefit of not hitting any limits on DNS entries or Apache vhost configurations as there is only one vhost configuration in Apache (the default site) and only one DNS record (the wildcard dns record).

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme