kgc
By:
kgc

How do I point multiple domains to various subdomains on a Dokku droplet?

September 4, 2015 613 views
Dokku DNS Deployment

How do I point multiple domains to various subdomains on a Dokku droplet?

1 Answer

In order to point a custom domain at an app running on Dokku, you should use the built-in domains command. After creating a DNS record pointing the domain to the IP address running Dokku as you normally would, you can add that domain to the application by running:

  • dokku domains:add app-name www.example.com

Behind the scenes, this is simply configure Nginx to route the requests which will work with multiple domains as well.

Have another answer? Share your knowledge.