cPanel account redirection to hostname

TheM4ster

Member
Aug 22, 2014
6
0
51
cPanel Access Level
Root Administrator
Hello Everybody,

I have a problem, whenever an entry cpanel account hosted on my vps, redirects me to the hostname.
Example:

domain.com/cpanel

Redirect to:
centos.domain.com:2083/

That I can do to enter this way.
domain.com:2083/

Thank you, very much.

TheM4ster
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Hello :)

You can change the redirection settings under the "Redirection" tab in:

"WHM Home » Server Configuration » Tweak Settings"

Use "Origin Domain Name" instead of "Hostname" or "SSL Certificate Name".

Thank you.
 

TheM4ster

Member
Aug 22, 2014
6
0
51
cPanel Access Level
Root Administrator
Hello cPanellMichael,
I did as he tells me, now I have another problem,

Redirect to:
domain.com:2083/

I get this error ssl,
This Connection is Untrusted

That I can do to enter this way and the next port.
domain.com:2082/

I have to do something more,

ThankYou for answering
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Yes, it's normal to see that warning because you can only install one SSL certificate per service via:

"WHM Home » Service Configuration » Manage Service SSL Certificates"

It defaults to a self-signed certificate that matches the hostname of the server. Any attempts to access it over an individual domain name will result in the SSL warning message (plus if it's self-signed there will be a warning anyway).

Thank you.
 

TheM4ster

Member
Aug 22, 2014
6
0
51
cPanel Access Level
Root Administrator
Hello,
Ok,
As I can avoid this redirection,

Enter:
domain.com/cpanel

Redirect to:
domain.com:2083/

what I want is to enter the cpanel user account without SSL.
Ejm:
domain.com:2082/

I did this and as usual,
“Server Configuration >> Tweak Settings” >> “Require SSL” >> off.
Please, as this is solved.

Greetings
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Hello :)

If "Always redirect to SSL" is disabled, then try clearing your browser cache to see if the redirect to the secure port still occurs.

Thank you.
 

TheM4ster

Member
Aug 22, 2014
6
0
51
cPanel Access Level
Root Administrator
Hello,
remove the ssl correctly, thankyou,

Now this happens,
Enter:
/http://www.domain.com/cpanel

because before this redirect URL,
/http://www.domain.com:2082/

Redirect to:
/http://www.domain.com:2082/unprotected/redirect.html

which means, that, unprotected/redirect.html ?

ThankYou,
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,236
463
Make sure that "Require SSL" is also disabled under "Security" in "Tweak Settings" if you want to allow the use of the non-secure ports.

Thank you.