CNAME domainA.com to app.domainB.com on dokku vps
I configured a dokku vps with several apps on subdomains like this:
vps ip - A record
vps ip - A record wildcard
And I can access every app at
*.domainA.com, which is fine. I then configured a CNAME for another domain to point to one of the apps like this:
www.domainB.com - 301 redirect of naked domain to www
app2.domainA.com - 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?
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.×