Hi,
Just in case somebody else has the same issue using CloudFlare + LVE and you can't see stats or any settings because CloudFlare returning 502 Bad Gateway.
The issue is in the way that cPanel changed the handling of Proxy Subdomains.
Open /usr/local/cpanel/whostmgr/docroot/cgi/CloudLinux.cgi and find this lines
There is something messed up with $protocol or REFERER I did not check them.
Of course, this will not last forever (maybe a minute) because it will check and modify that file again. But at least you know what is causing this issue and it's not CloudFlare issue.
Just in case somebody else has the same issue using CloudFlare + LVE and you can't see stats or any settings because CloudFlare returning 502 Bad Gateway.
The issue is in the way that cPanel changed the handling of Proxy Subdomains.
Open /usr/local/cpanel/whostmgr/docroot/cgi/CloudLinux.cgi and find this lines
- sub _checkReferer
- {
- my $protocol = (exists $ENV{ HTTPS } && $ENV { HTTPS } eq 'on')
- ? 'https' : 'http';
- my $ip = $ENV { HTTP_HOST };
- unless ($ENV{ HTTP_REFERER } =~ qr/^$protocol:\/\/$ip/) {
- sendError('BAD REFERER', 0, 1);
- }
- }
There is something messed up with $protocol or REFERER I did not check them.
Of course, this will not last forever (maybe a minute) because it will check and modify that file again. But at least you know what is causing this issue and it's not CloudFlare issue.