Question

Ghost blog shows on domain instead of subdomain only

Let’s start with the zone file:

mysi.te. 1800 IN NS ns1.digitalocean.com. mysi.te. 1800 IN NS ns2.digitalocean.com. mysi.te. 1800 IN NS ns3.digitalocean.com. mysi.te. 1800 IN A <droplet’s IP address here> txt.mysi.te. 1800 IN A <droplet’s IP address here> // this is where the blog should be www.mysi.te. 1800 IN CNAME mysi.te.

I changed the DNS settings so now any.mysi.te doesn’t take you to mysi.te, but gives you an error message and this is fine. When you type txt.mysi.te, you go to the blog, and this is fine too. However, when you go to mysi.te, you will see the blog again, and I basically want to see Nginx’s Welcome message there.

But this is not happening. What am I doing wrong?

Subscribe
Share

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

You need a virtual host to handle that domain name, otherwise Nginx will fall back to the default one, which is either the one you specifically defined as default, or the first one it will have loaded from your configuration.