# Wildcard Subdomains & OS X Local Development

**URL:** <https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567>\
**Category:** Rails\
**Created:** [February 8, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567 "2008-02-08T22:58:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newmonarch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@newmonarch](https://www.ruby-forum.com/u/newmonarch)\
**Post date:** [February 8, 2008, 10:58pm UTC](https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567/1 "2008-02-08T22:58:06Z")

</div>

I’m using the simple account\_location plugin to have virtual  
subdomains on my app ([account.myapp.com](http://account.myapp.com) - see Basecamp, Blinksale,  
etc.)

How do you go about setting up your OS X system to play nice? I’d like  
to use Apache & Mongrel.

Notes: The only thing I’ve able to accomplish is hardcoding the  
subdomains directly in my hosts file. I can get “[test.localhost.com](http://test.localhost.com)”  
to work fine, that’s not really a wildcard subdomain. I wouldn’t be  
able to test the app’s ability to create and recognize subdomains

I’d gotten the tip to setup a local DNS server, but I couldn’t get  
anything installed right.

---

<div class="post-metadata">

**Author:** ![newmonarch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/7bcc69/32.png) [@newmonarch](https://www.ruby-forum.com/u/newmonarch)\
**Post date:** [February 9, 2008, 1:02am UTC](https://www.ruby-forum.com/t/wildcard-subdomains-os-x-local-development/128567/2 "2008-02-09T01:02:37Z")

</div>

On 08 Feb 2008, at 22:57, NewMonarch wrote:

> able to test the app’s ability to create and recognize subdomains
> 
> I’d gotten the tip to setup a local DNS server, but I couldn’t get  
> anything installed right.

[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/)

Used it on all my computers already and works perfectly.

Best regards

Peter De Berdt
