Viewing cPanel and Webmail when running through Cloudflare

xman888

Well-Known Member
Nov 23, 2005
61
1
158
Hello,

Wondering if anyone can assist.

We run quite a few domains through Cloudflare.

I am looking for the correct set up so that cpanel and webmail can be accessed via sub domain, and those sub domains are running through Cloudflare (so that they can use the Cloudflare SSL feature (so they can be viewed at https)).

ie. https://webmail.Domain.com.au and https://cpanel.Domain.com.au

Cloudflare is enabled for the main A record, and the ‘webmail’ and ‘cpanel’ A records

SSL is set to FLEXIBLE, and ALWAYS USE HTTPS and AUTOMATIC HTTPS REWRITES is enabled.

When SSL = Flexible, I get the ‘too many redirects’ when viewing https://webmail.Domain.com.au and https://cpanel.Domain.com.au

When SSL = FULL, I can view https://webmail.Domain.com.au and https://cpanel.Domain.com.au , however the issue is, is that when viewing the actual website (Domain.com.au), in some instances, it will show a different website from the server (when SSL = FULL)

Is there anther setting or PAGE RULE that I can set, that will allow https://webmail.Domain.com.au and https://cpanel.Domain.com.au to work (ie. won’t display the ‘too many redirects’), while SSL = FLEXIBLE ?

I have tried the PAGE RULE (Always USE HTTPS) with http://Domain.com.au/ , however that hasn’t resolved the issue.

Any other ideas?

Kind regards,

Anthony

P.S I have also put this on the Cloudflare forum as well, as wasn't sure where the best place to place it was:

Viewing cpanel and webmail when running through Cloudflare
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello Anthony,

CloudFlare and service subdomains (e.g. cpanel.domain.tld, whm.domain.tld) are not fully compatible.

You'll need to update the A records for the service subdomains (e.g. cpanel.domain.tld, whm.domain.tld) to the IP address of the cPanel server so that these subdomains are not proxied through CloudFlare. If you enable the AutoSSL feature, then signed certificates will be issued for these service subdomains.

Thank you.
 

xman888

Well-Known Member
Nov 23, 2005
61
1
158
Hello,

Just an update on this.

It was just one domain where the issue occurred when SSL in Cloudflare = FULL

All other domains in Cloudflare are working well, when SSL = FULL, and I can access webmail.Domain.com.au and cpanel.domain.com.au without any issues (and under https).

Kind regards,

Anthony
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,913
2,205
363
Hello Anthony,

Can you open a support ticket so we can take a closer look at the system? You can post the ticket number here and we'll link this thread to it.

Thank you.