Question
Need my droplet ip stop redirecting to one single domain
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?
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.
×
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!