Apache2 proxy to local port

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/

Filed Under: Quick fixesTechnical

Tags:

About the Author: InstaCarma is a provider of Enterprise Class Solutions for the Hosting Industry

RSSComments (0)

Trackback URL

Leave a Reply

Get Adobe Flash playerPlugin by wpburn.com wordpress themes
InstaCarma provides outsourced web hosting technical support, helpdesk management, datacenter automation, cloud service management. Sales - 1800 810 6547 - visit www.instacarma.com