: 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
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.
More posts by @Jessie594
1 Comments
Sorted by latest first Latest Oldest Best
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).
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.