Question
How do I reconfigure top level routing on the DigitalOcean Dokku0.2.3/14.04 one-click application?
I'm running into an odd issue with the one-click dokku installer where top level routing seems to be broken, or at least odd.
I've got DNS records of:
mysite.com A
*.mysite.com A
When I push the first project to dokku@mysite.com:foobar, suddenly ANY subdomain of mysite.com, as well as the root mysite.com, all route to this project. I'd have expected here that all subdomains except foobar don't respond.
When I push a second project to dokku@mysite.com:foobarbaz, suddenly ANY subdomain of mysite.com, as well as the root, all route to the SECOND, project, EXCEPT foobar.mysite.com which routes to the first. From this point on, any further projects pushed seem to take over their designated subdomain only, as one would expect.
In contrast, I've got a manually installed dokku 0.2.3 on 14.04, and it exhibits the behavior where *anysubdomainofmine* will show an nginx default page, and *subdomains corresponding to projects* will show the proper project. This seems nominally correct to me, with the exception of the nginx "config required" page.
My REAL end goal is to have one project served at www.mysite.com AS WELL AS mysite.com (root), with other projects served at their respective subdomains. Has anyone achieved this, with or without the one-click droplet?
Add a comment
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.
×