Virtual server redirects to sub-server

1 post / 0 new
#1 Wed, 02/20/2019 - 04:50
su1

Virtual server redirects to sub-server

I have a virtual server domain1.com that is empty, with no feature enabled. It has many sub-servers hosted under it, domain2.com , domain3.com , etc...

When I type in the adress domain1.com in my browser, it redirects to subserver domain2.com. How can I prevent this behavior and just display a "forbidden" page?

I've tried putting a .htaccess file with "Deny from all" in my ~/public_html folder but it's not working.

Thanks