BraveX

Well-Known Member
Apr 8, 2005
155
0
166
I have a customer having trouble accessing cpanel. It think it's firewall related.

I'm wondering if cPanel Proxy (cPanel Proxy) is secure and what your experience has been with it. Is it worth installing?

Thanks.
 

chinmay

Well-Known Member
Jul 22, 2008
101
0
66
localhost
Hi there,

cPanel Proxy is inbuilt with the latest cPanel versions...
Yes, it is worth installing cPanel proxy but one thing concerns me about is that it doesn't works with https. Using cPanel proxy, your local machine does not connects to the port 2082 directly... It gets connected to the server with port 80 and then establishes connection with the server on port 2082...

Hope this helps ;)

Note :: make sure you have the DNS entry for the subdomain cpanel.domain.com, whm.domain.com and webmail.domain.com is added on the server
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
16
313
Houston, TX
cPanel Access Level
Root Administrator
I have a customer having trouble accessing cpanel. It think it's firewall related.

I'm wondering if cPanel Proxy (cPanel Proxy) is secure and what your experience has been with it. Is it worth installing?

Thanks.
The third party cPanel Proxy script is no longer needed as that functionality is now native to cPanel/WHM as of version 11.23.
 

cPanelDavidG

Technical Product Specialist
Nov 29, 2006
11,212
16
313
Houston, TX
cPanel Access Level
Root Administrator
Hey david is there somewhere in whm where you have to turn this setting on ?
First, you will need to have mod_proxy enabled in Apache for this to work.

Second, you can enable/disable this functionality in Tweak Settings. Here are relevant settings:

Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)
Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)
If you want users to be able to create their own cpanel/webmail/whm subdomains, you can enable this setting to let them override our reverse-proxy feature:

Allow users to create cpanel, webmail, webdisk and whm subdomains that override automatically generated proxy subdomains
 

sharmaine001

Well-Known Member
Jun 23, 2006
143
0
166
I already enabled these and created a new account but the new account does not have the proxies enabled:

Add proxy VirtualHost to httpd.conf to automatically redirect unconfigured cpanel, webmail, webdisk and whm subdomains to the correct port (requires mod_rewrite and mod_proxy)

Automatically create cpanel, webmail, webdisk and whm proxy subdomain DNS entries for new accounts. When this is initially enabled it will add appropriate proxy subdomain DNS entries to all existing accounts. (Use /scripts/proxydomains to reconfigure the DNS entries manually)

Allow users to create cpanel, webmail, webdisk and whm subdomains that override automatically generated proxy subdomains

I also run /scripts/proxydomains add --domain=domainhere.com

But it still wont enable the cpanel access using port 80

Please help!
 

Rasta Tee

Registered
Jun 9, 2011
2
0
51
If you are using squid go to /etc/squid/squid.conf then add port 2082 to safe ports. service squid reload
Now to access the cpanel you have to specify the port instead of /cpanel eg
instead of /http://www.jcit.co.za/cpanel use /http://www.jcit.co.za:2082