elleryjh

Well-Known Member
Apr 12, 2003
475
0
166
The code that makes that redirect work is in /usr/local/apache/conf/httpd.conf.

Specifically:
Code:
ScriptAliasMatch ^/cpanel/(.*) /usr/local/cpanel/cgi-sys/redirect.cgi
ScriptAlias /cpanel /usr/local/cpanel/cgi-sys/redirect.cgi
Make sure that's still in httpd.conf somewhere.
 

rpmws

Well-Known Member
Aug 14, 2001
1,787
10
318
back woods of NC, USA
and make sure apache is up and the "domain" you are using is pointing towards the IP that apache is binding to. On a new box ..this could bite you. I would hope you knew if apaceh was down ..but had to ask. apache doesn't serve cpanel ..but it redirects you to it on 2082/83
 

-jdk-

Well-Known Member
Aug 28, 2005
63
0
156
There is a setting in your config inside WHM to direct /cpanel /whm /webmail requests to the proper port. This is likely unchecked.
 

Messiah

Member
PartnerNOC
Jul 5, 2006
22
0
151
Also, there's a setting in Tweak Settings in WHM that will make /cpanel, /whm, /webmail, etc always redirect to secure ports. If you have this set, then /cpanel will redirect to :2083, which relies on stunnel. Make sure stunnel is functioning properly in this case. Most likely it's just the ScriptAlias lines. You can test to see if it's stunnel by manually typing https://domain:2083.