By johannaranjo
Hi, i have some domains configured in my account and vesta cp to manage my sites. Today I needed to test a new website without having domain name set and found that every time i put droplet’s IP it redirects to one of the domains (I presume its because is the first domain in the list).
How can I stop this behaviour?
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!
This question was answered by @saurabh:
This cannot be stopped as there is one default site on the server which is always fetched!
However if you want to actually come out, then, one of the work-around could be that you make a sub-domain like “test.website.com” as default.
This way user will go to this website where you can put a index.html page with a custom message of your liking.
Second way is to simply deny IP based browsing with the help of security rules which can be implemented in the form of .htaccess rules or a web-server module!
Hope this helps!
You can see the comment here.
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.