We have built functionality into cPanel to use cpanel.domain.com and webmail.domain.com over port 80 so that you can still access cPanel and your webmail behind a proxy server. Simply replace domain.com with the name of your website.
This functionality can be turned on and off in the Tweak Settings menu of WHM. The specific setting is called '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
- Code: Select all
/scripts/proxydomains
To enable proxydomains for the whole server:
- Code: Select all
/scripts/proxydomains add
To enable for all domains on one user’s account:
- Code: Select all
/scripts/proxydomains –user=<user> add
To enable for a single domain:
- Code: Select all
/scripts/proxydomains –domain=<domain> add
From here, you can access the proxy at http://cpanel.domain.com (or webmail/whm, respectively), or access cPanel normally and let it detect whether you are behind a firewall.