On Tue, Sep 8, 2009 at 5:33 AM, Jay Godse<[email protected]> wrote: > Is it possible to point > www.d1.com to "myapp.heroku.com/a1" > www.d2.com to "myapp.heroku.com/a2"
Yes, although this has more to do with your web framework than Heroku. Point both domains at your app: $ heroku domains:add www.d1.com $ heroku domains:add www.d2.com If you're using Rails, use a patch like this one: http://www.smallroomsoftware.com/articles/2007/2/10/rails-routing-based-on-hostname Then set up your routes to use hostname to route things: map.connect :controller => 'a1', :conditions => {:hostname => 'www.d1.com'} map.connect :controller => 'a2', :conditions => {:hostname => 'www.d2.com'} Personally I think this is likely to result in confusing code, so I wouldn't do it. But if you want to you that's how you would. Adam --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
