Canadian Web Hosting Blog and News

cPanel Proxy

cPanel proxy is very helpful incase of networks behind firewalls. It allows users to access cPanel, WHM and Web Mail on port 80

The setup can be done in three simple steps:

  • Proxy Installation
  • WebServer Configuration
  • DNS Configuration


  • ssh login to the server as root user.

cd /usr/local/src
mkdir cpanelproxy
cd cpanelproxy
unzip ../
cd ..
chown nobody.nobody cpanelproxy -R
chmod 755 cpanelproxy -R
mv cpanelproxy /usr/local/share

Webserver(Apache) Configuration:

Edit the Apache configuration file(/usr/local/apache/conf/httpd.conf) and add Alias for cPanel, WHM and webmail.

ServerName cpanel.*
ServerAlias cpanel.* whm.* webmail.*
DocumentRoot /usr/local/share/cpanelproxy

DNS Configuration:

Add alias or CNAME records for the domains.


cpanel 14400 IN CNAME
webmail 14400 IN CNAME

Filed under: Programming No Comments