# Managing subdomains for users

**URL:** <https://www.ruby-forum.com/t/managing-subdomains-for-users/115920>\
**Category:** Rails\
**Created:** [September 30, 2007, 10:34am UTC](https://www.ruby-forum.com/t/managing-subdomains-for-users/115920 "2007-09-30T10:34:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonas\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dfb087/32.png) [@jonas\_s](https://www.ruby-forum.com/u/jonas_s)\
**Post date:** [September 30, 2007, 10:34am UTC](https://www.ruby-forum.com/t/managing-subdomains-for-users/115920/1 "2007-09-30T10:34:33Z")

</div>

Hi guys,

Can you help me in integrating subdomains into my app?

I have a service in the same style of basecamp, freshbooks, highrise  
etc., where users get their own subdomain when registering. How can I  
archieve the same results in a mostly painless way?

Greets  
Jonas

---

<div class="post-metadata">

**Author:** ![jonas\_s](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/dfb087/32.png) [@jonas\_s](https://www.ruby-forum.com/u/jonas_s)\
**Post date:** [September 30, 2007, 11:15am UTC](https://www.ruby-forum.com/t/managing-subdomains-for-users/115920/2 "2007-09-30T11:15:28Z")

</div>

On 30 Sep 2007, at 10:33, Jonas S. wrote:

> Can you help me in integrating subdomains into my app?
> 
> I have a service in the same style of basecamp, freshbooks, highrise  
> etc., where users get their own subdomain when registering. How can I  
> archieve the same results in a mostly painless way?

[http://agilewebdevelopment.com/plugins/account\_location](http://agilewebdevelopment.com/plugins/account_location)

And you’ll need to configure your dns with a wildcard domain  
(\*.yourdomain.com)

If you want to be able to do this on your local machine (and you’re  
on a Mac), you can follow these instructions:  
[http://woss.name/2006/11/13/setting-up-local-name-server-on-mac-os-x/](http://woss.name/2006/11/13/setting-up-local-name-server-on-mac-os-x/)

Best regards

Peter De Berdt
