Dokku Deploys To Every Domain and Subdomain
I'm currently developing Rails web app and I deploy it with Dokku to this droplet. I linked the droplet to my domain name. with the following settings:
A record @ >> droplet IP
A record * >> droplet IP
CNAME www >> mydomain.com.
I have deployed to subdomain myapp.mydomain.com however whenever I open random subdomain such as axz.mydomain.com and even the root domain (mydomain.com), it will be redirected to the app.
How to fix the issue? Thank you.