Hi!, i’ve a droplet with nginx, and casually (in google) i’ve discovered another domain which i’m not owner pointing to my site… any recommends? how can I avoid this? thanks!
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
You can’t do anything about that. <br> <br>But you can set up a name based virtual host, telling visitor the domain they visit is invalid or direct them out of you site. <br> <br>If you just want to emphasize your domain just rewrite all url to your own domain.
thanks! I’ve avoid this in nginx.conf: <br>server { <br> server_name … <br>… <br> ## Deny illegal Host headers <br> if ($host !~* ^(xxx.com|www.xxx.com)$ ) { <br> return 444; <br> } <br> <br>… <br>
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.