CNAME to on dokku vps

October 6, 2014 3k views


I configured a dokku vps with several apps on subdomains like this: to vps ip - A record
* to vps ip - A record wildcard

And I can access every app at *, which is fine. I then configured a CNAME for another domain to point to one of the apps like this: to - 301 redirect of naked domain to www to - CNAME record.

However the dokku nginx is serving the first app in alphabetic order. I think it is simply serving the first /home/dokku/*/nginx.conf it includes in /etc/nginx/conf.d/dokku.conf . So, is this the correct behavior? Or is something wrong with my DNS settings?

Thank you!

1 comment
1 Answer

This question was answered by @floringogianu:

I eventually figured out what was happening:
I'll probably need to look into some dokku plugins so I don't need to edit this after each deploy.

You can see the comment here.

Have another answer? Share your knowledge.