Question

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

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

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

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.