Subdomain of other domains show website of first account

Zelda

Verified User
Joined
Jan 27, 2020
Messages
13
Hi Guys,

I'm encountering a strange bug. Just got a new VPS, restored all my clients and now I have this bug.

In DirectAdmin I have a few accounts. For example:
  • a.com
  • b.com
  • c.com
But now when I go to

somewildcard.b.com or somethingelse.c.com It shows the website of a.com. I'm running on AlmaLinux with Directadmin.
 
If website had owned IP assigned, even accessing http://IP_ADDRESS would show that site. So, it's most likely the DNS of the domains isn't pointed correctly.
 
All domains are redirecting to the IP address of the server. If a subdomain does not exists on the server but is redirecting as a wildcard to the IP address, I don't want the first domain to be used as default. Is there any way to prevent this?
 
Back
Top