Stop random domain to point on my IP ( Ghost one click droplet)

Posted February 25, 2021 172 views

Really happy about the one click process.
For reasons I don’t really understand, a random domain ( not mine) created a A record to my IP, serving my ghost content ( with a invalid certificate warning).
What is the official “ghost” way to block theses? Happy to investigate nginx conf files, but maybe ghost cli has special options I missed?
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.

Submit an Answer
1 answer

Hi there,

What I would usually do in this case is to create a separate Nginx server block for my main domain and a default Nginx server block that would handle all other host names and only serve a default page.

For more information on how to setup Nginx server blocks you could take a look at the following tutorial:

Hope that this helps!

by Justin Ellingwood
When using the Nginx web server, server blocks (similar to the virtual hosts in Apache) can be used to encapsulate configuration details and host more than one domain off of a single server. In this guide, we'll discuss how to configure server blocks in Nginx on an Ubuntu 16.04 server.