# Account\_location and domain forwarding

**URL:** <https://www.ruby-forum.com/t/account-location-and-domain-forwarding/109459>\
**Category:** Rails\
**Created:** [July 15, 2007, 7:14am UTC](https://www.ruby-forum.com/t/account-location-and-domain-forwarding/109459 "2007-07-15T07:14:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jjkiesch](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/bc79bd/32.png) [@jjkiesch](https://www.ruby-forum.com/u/jjkiesch)\
**Post date:** [July 15, 2007, 7:14am UTC](https://www.ruby-forum.com/t/account-location-and-domain-forwarding/109459/1 "2007-07-15T07:14:02Z")

</div>

i’m playing around with an idea i had for using a rails app with  
multiple domains. i used the account\_location plugin which works  
great.

however, eventually i would like to do something similar to shopify  
where they allow you to add dns entries to your own domain and forward  
it to the subdomain on their site. for instance, i could have  
[mystore.myshopify.com](http://mystore.myshopify.com) and add a cname record so that [shop.mydomain.com](http://shop.mydomain.com)  
would point to that, or even a top level domain like [mydomain.com](http://mydomain.com).

i’m not very knowledgeable when it comes to dns, so i don’t know how  
it works. but is there a way to set the account\_location plugin to  
handle something like that or would i have to do some sort of dns  
lookup to make sure the requesting domain matches an account that’s  
set up?
