We are facing a difficult time after migrating a website from one cPanel server to another. We have a customer who is facing some issues with his current VPS. We offered to migrate his website to another VPS. We migrated the entire cPanel account using the Transfer Tool. After the migration was completed, the website in the original VPS got automatically suspended and the DNS records were modified with the new VPS' IP address. As a result, the website stopped. When we changed the DNS records back to point to the original IP address, we started facing issues with the Proxy Backend. We observed the following
1. The /etc/apache2/conf/httpd.conf file has the lines ProxyPass "http://<Hostname_of_new_VPS"
2. The emails weren't getting delivered and we have to reset the service certificate for Dovecot and Exim to fix the issue.
3. The .htaccess of the websites get modified with the following line appended
RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php5|php6|php3|shtml)$ http://<Hostname_of_vps/cgi-sys/movingpage.cgi
4. The /var/cpanel/users/<user_name> file gets modified with the value of PROXY_BACKEND set to the hostname of the new VPS.
5. If we comment the line ProxyPass "http://<Hostname_of_new_VPS" as shown in the point 1 above and restart apache, the website starts working. However, in a few minutes it reverts back to original and the website stops with the following error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: DNS lookup failure for: <Hostname_of_new_VPS>
Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
The Transfer Tool has certainly created lots of issues with the original server which was never the case with the earlier cPanel versions. It looks like cPanel has created a very big blunder by making changes in the Transfer Tool. Please help to resolve the issue permanently.
1. The /etc/apache2/conf/httpd.conf file has the lines ProxyPass "http://<Hostname_of_new_VPS"
2. The emails weren't getting delivered and we have to reset the service certificate for Dovecot and Exim to fix the issue.
3. The .htaccess of the websites get modified with the following line appended
RedirectMatch \.(dynamiccontent|pl|plx|perl|cgi|php|php4|php5|php6|php3|shtml)$ http://<Hostname_of_vps/cgi-sys/movingpage.cgi
4. The /var/cpanel/users/<user_name> file gets modified with the value of PROXY_BACKEND set to the hostname of the new VPS.
5. If we comment the line ProxyPass "http://<Hostname_of_new_VPS" as shown in the point 1 above and restart apache, the website starts working. However, in a few minutes it reverts back to original and the website stops with the following error
The proxy server received an invalid response from an upstream server.
The proxy server could not handle the request
Reason: DNS lookup failure for: <Hostname_of_new_VPS>
Additionally, a 502 Bad Gateway error was encountered while trying to use an ErrorDocument to handle the request.
The Transfer Tool has certainly created lots of issues with the original server which was never the case with the earlier cPanel versions. It looks like cPanel has created a very big blunder by making changes in the Transfer Tool. Please help to resolve the issue permanently.