Scott: Thanks. That makes sense and would have been my guess for the
approach based on the technique to have a custom domain name for a
Heroku app.

Customer: Has www.example.com; adds CNAME to point to
example.myapp.com

Me: Add example.com to the list of Heroku domains associated with
myapp.

I assume what I see in my application though is www.example.com, not
example.myapp.com. Is that right? I am guessing I need to lookup who
www.example.com is really, map it too subdomain example, and continue
as usual.

Yes?


On Feb 20, 2:26 pm, Scott Watermasysk <[email protected]> wrote:
> We do something similar on KickoffLabs.
>
> We require our customers to add CNAME that points back at our domain.
>
> In your app, you need to use the Heroku API to add the domain to your 
> application.
>
> Something like this:
>
> heroku = Heroku::Client.new(username, password)
> heroku.add_domain('your app name', 'example.com')
>
> -Scott
>
> --
> Scott Watermasysk
> Founder, KickoffLabshttp://www.kickofflabs.com
>
>
>
>
>
>
>
> On Sunday, February 19, 2012 at 2:04 PM, Martin Streicher wrote:
> > I have a Rails 3.2 app on Heroku.
>
> > It accepts wildcards and subdomains, so each user can have a vanity
> > subdomain, such as a.app.com (http://a.app.com), b.app.com 
> > (http://b.app.com), etc.
>
> > What I want to do is let a user point example.com (http://example.com) to 
> > a.app.com (http://a.app.com).
>
> > What would I have to change in the example.com (http://example.com) DNS 
> > config to make this
> > work? And what do I change in my app?
>
> > I am guessing example.com (http://example.com) is just a CNAME for 
> > a.app.com (http://a.app.com). But how does
> > my app know what to do -- it needs to know that example.com 
> > (http://example.com) is really
> > a.app.com (http://a.app.com). I suppose I could tell the app that -- the 
> > user could
> > configure it.
>
> > Just trying to figure out the proxy madness for this... since
> > a.app.com (http://a.app.com) is a proxy to app.heroku.com 
> > (http://app.heroku.com). Does example.com (http://example.com) have to be a
> > proxy to app.heroku.com (http://app.heroku.com)?I am guessing that wont 
> > work.
>
> > Any ideas would be awesome.
>
> > --
> > You received this message because you are subscribed to the Google Groups 
> > "Heroku" group.
> > To post to this group, send email to [email protected] 
> > (mailto:[email protected]).
> > To unsubscribe from this group, send email to 
> > [email protected] 
> > (mailto:[email protected]).
> > For more options, visit this group 
> > athttp://groups.google.com/group/heroku?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Heroku" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/heroku?hl=en.

Reply via email to