VPS with strange behaviour of redirects of hosted domains?

JMGarcía

Member
Oct 11, 2016
24
3
53
Spain
cPanel Access Level
Root Administrator
I have a VPS with: CentOS v7.9.2009 STANDARD kvm - cPanel Version 110.0.8


Today by chance I have discovered this behaviour in my VPS and I think that this is neither normal nor correct and it should not be good either, especially in terms of SEO as Google might interpret it in a bad way and penalise it.

The hostname of my VPS loads the default cPanell page:

https://vps.myhostname.com >>>> https://vps.myhostname.com/cgi-sys/defaultwebpage.cgi

The main domain loads correctly an html, this main domain has in the .htaccess redirections to load that domain in https and with the www

The webmail on the subdomain also loads correctly, showing the webmail page:


Curiously it loads the url and does not redirect to port 2096 as it does when loading from https://maindomain.com/webmail.

To summarise:

https://webmail.maindomain.com >>>> show webmail page
https://maindomain.com/webmail >>>> redirect to https://maindomain.com:2096 and show webmail page

This behaviour is common in all domains hosted on the VPS and I imagine it is normal.

Now I am going to describe the strange behaviour I am referring to.

If I try to load any domain from any of the VPS accounts with a subdomain other than www. or webmail the browser gives the typical certificate error: NET::ERR_CERT_COMMON_NAME_INVALID and displays the button: Advanced Settings which when clicked displays:


This server has not been able to prove that your domain is dddddddwww.anyofthedomainshosted.com, your security certificate comes from multimancha.com. This problem may be due to an incorrect configuration or an attacker intercepting the connection.

Accessing dddddddddwww.anyofthedomainshosted.com (unsecured site)

If I click on the link to go to the unsecured site, the web page of the main domain of the VPS logically loads without a certificate and with the unsecured warning in the browser.

Anything except www. or webmail. generates this behaviour.

In other shared accounts that I have in other providers with cPanel and in another VPS also with cPanel this does not happen,... when trying to load any subdomain other than www. or webmail.

The page gives an error and shows the error:

DNS_PROBE_FINISHED_NXDOMAIN


I don't know if it's a DNS configuration issue,... I don't know where the problem could be, but I would like that the domains give this error DNS_PROBE_FINISHED_NXDOMAIN or could be redirected to https://domain.com/cgi-sys/defaultwebpage.cgi or even better, redirect on demand to the https of the domain.... each domain to its own,...

Can anyone shed some light on this,.... If this behaviour is normal and if not, where is the problem and how can it be solved?

Thanks.
Regards.
JM
 
Last edited by a moderator:

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
16,525
2,607
363
cPanel Access Level
Root Administrator