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.
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.