Canadian Web Hosting Blog and News
29Sep/080

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

Installation:

  • ssh login to the server as root user.

cd /usr/local/src
wget http://cpanelproxy.net/cPanelProxy.zip
mkdir cpanelproxy
cd cpanelproxy
unzip ../cPanelProxy.zip
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.

EX:

cpanel 14400 IN CNAME yourdomain.com.
webmail 14400 IN CNAME yourdomain.com.

Filed under: Programming No Comments