Report this

What is the reason for this report?

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

Posted on September 4, 2015
kgc

By kgc

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



This textbox defaults to using Markdown to format your 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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.