Make few changes to your VitualHost entries for the domain (cpanel.domain.com and webmail.domain.com) so that you needn’t install cpanel proxy on the server to access the cPanel and webmail via the ports 2082 and 2095.

This will let you access cPanel and webmail at port 80.

For cPanel: Add the following entries in the VirtualHost entry of the domain “cpanel.domain.com”

ProxyPass / http://localhost:2082/
ProxyPassReverse / http://localhost:2082/
ProxyPreserveHost On

For Webmail: Add the following entries in the VirtualHost entry of the domain “webmail.domain.com”

ProxyPass / http://localhost:2095/
ProxyPassReverse / http://localhost:2095/
ProxyPreserveHost On

Once this is added, you will be able to access cPanel and Webmail using the URLs :

http://cpanel.domain.com/

http://webmail.domain.com/


Shares
Contact Us On WhatsApp