Need my droplet ip stop redirecting to one single domain

July 30, 2015 3.1k views
DNS Apache

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?

1 comment
  • 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!

1 Answer

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.

Have another answer? Share your knowledge.