Configuring domains the right way

When we deploy a web application to Heroku, the application is accessible via the app subdomain (in the cedar stack). For example, if your application is named myshoppingcart, the fully qualified Heroku URL for the application would be If you are an e-commerce site that wants to attract new users, you may want to use a more custom web URL for the site—for example, or We can achieve this in Heroku by configuring the application to use a custom domain. Heroku provides the ability to map one or more custom domains to any application transparently. We start by getting a small introduction to the domain name system or DNS which ...

Get Heroku Cloud Application Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.