Auto redirect of non-existing subdomain
-
- Posts: 1
- Joined: Fri Mar 12, 2021 10:15 am
- Os: Ubuntu 17x
- Web: apache + nginx
Auto redirect of non-existing subdomain
Hi guys,
this problem I have since i had installed the VestaCP, but it wasn't frustrating previously. Hovewer, as more domains is on the server, as more it's not good.
For exmaple, I have 2 domains:
example1.com
and
example2.com
added to VestaCP. They have correctly setted ns domains in domain registrator and in VestaCP they are added just only with default aliases (www.). And the problem is:
When I go to the some-non-exisiting-subdomin-of.example.com or another-subdomain.example.com it always redirects me to one of existing main domains but I cannot choose to which one or change it. If i delete that domain on which is everything non existing redirected, it choose another domain and everything non-existing is redirected here.
Can I disable it, set just 404 page or change the domain on which will be non-existing subdomain redirected?
Thank you for your replies
this problem I have since i had installed the VestaCP, but it wasn't frustrating previously. Hovewer, as more domains is on the server, as more it's not good.
For exmaple, I have 2 domains:
example1.com
and
example2.com
added to VestaCP. They have correctly setted ns domains in domain registrator and in VestaCP they are added just only with default aliases (www.). And the problem is:
When I go to the some-non-exisiting-subdomin-of.example.com or another-subdomain.example.com it always redirects me to one of existing main domains but I cannot choose to which one or change it. If i delete that domain on which is everything non existing redirected, it choose another domain and everything non-existing is redirected here.
Can I disable it, set just 404 page or change the domain on which will be non-existing subdomain redirected?
Thank you for your replies