i have deployed my code on digital occean hosting. got IP and added ip in A record of my domain in godaddy. now my site works well and hosting pointed to my jaraware.com successfully. but there one strange thing happen that another strange domain also opening my full website. whatever i change in my code its reflects on my domain as well on that strange domain. i dont know why this happpening. my full website opening on one strange domain.
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!
Accepted Answer
Hi there @parmarjatin834,
It is possible that the other domain name is also pointing to your server’s IP address.
To check that you could use the following DNS lookup tool:
https://www.digitalocean.com/community/tools/dns
If the A record of the strange domain name matches your website, what you could do is add a separate virtual host for your domain name and then create a default virtual host to catch all other traffic and not show your website.
Here is a tutorial on how to add a virtual host to your Nginx webserver:
Regards, Bobby
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.