×
×

Knowledgebase & Downloads

The knowledgebase provides documentation written by our team. Please select a category or search for answers.

Articles

How do I have my webmail accessible at a different non-default subdomain?

On cPanel servers webmail is accessible by default at
webmail.yourdomain.com
yourdomain.com/webmail

If you want it to be reachable by another subdomain (mail.yourdomain.com in this example) then:

1. Have mail.yourdomain.com pointing to your cpanel server (e.g. with A record)
2. Have your support add the following

ServerAlias mail.yourdomain.com
SSLProxyEngine On
ProxyPreserveHost On
ProxyPass / https://webmail.yourdomain.com:2096/
ProxyPassReverse / https://webmail.yourdomain.com:2096/

in /etc/httpd/conf/userdata/yourdom/yourdomain.com/webmail.conf
and run /scripts/ensure_vhost_includes --user=yourdom
or thay may also try

ServerAlias mail.yourdomain.com
SSLProxyEngine On
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{HTTP_HOST} mail\.
RewriteRule ^/(.*) https://%{HTTP_HOST}:2096/$1 [P]
</IfModule>

 or their variations.


Powered by HostBill