Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Thu May 21, 2009 2:30 am 
Offline
Senior Newbie

Joined: Sat Mar 14, 2009 1:04 am
Posts: 7
Website: http://nowyoufirst.com
Hi all,

I saw that there are many web application nowadays that is able to give a subdomain for the user id upon registration.

So if I register as jpartogi on blabla.com, I can get http://jpartogi.blabla.com for my default page. How do we do that? Do we write BIND config upon user registration? Or is there a simpler way to do it?

Thanks.

_________________
http://twitter.com/jpartogi


Top
   
 Post subject:
PostPosted: Thu May 21, 2009 3:42 am 
Offline
Senior Member

Joined: Fri May 02, 2008 8:44 pm
Posts: 1121
Wildcard subdomains.

Code:
*.blabla.com. 86400 IN A 123.45.67.89

Everything points to 123.45.67.89. No need to add records for specific subdomains. The rest is up to your webserver. You'll probably need a regex in your virtual host definition, or else use the default virtual host to catch everything.


Top
   
 Post subject:
PostPosted: Thu May 21, 2009 12:59 pm 
Offline
Senior Member
User avatar

Joined: Mon Dec 10, 2007 4:30 pm
Posts: 341
Website: http://markwalling.org
ServerAlias and VirtualDocumentRoot will do what you want "on the fly" if you're using Apache.

Lighty can do similar using mod_simple_vhost too.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group