As a personal project I've deployed the Dokku Image on Digital Ocean and got everything working well. In fact it works very well as I've done it before, but I have a question on how I can change what "default" app the Domain Host Name points to.
Here is my setup.
I set up Dokku on Digital Ocean with the "Hostname" and "Virtualhost Naming" options selected. So basically this means that I have my own Domain Name being used to point to apps instead of the IP/Port. Lets assume my Domain Name is mydomain.com
I have 2 Dokku apps running in this Digital Ocean server. Lets call them app-a and app-b. As I enabled "virtual naming" these apps can be accessed like so.
- app-a.mydomain.com
- app-b.mydomain.com
All this works perfectly.
Now I notice that if I go to "mydomain.com" or "www.mydomain.com" in the browser it "defaults/redirects with masking" to "app-b.mydomain.com". My guess is that because app-b was the last App I set up NGINX has defaulted to this.
So how can I change this behaviour, i.e. I need "mydomain.com" or "www.mydomain.com" to go to app-a instead?
Thanks very much in advance.
Mark.