https://documentation.cpanel.net/display/DD/WHM+API+1+Functions+-+unset_all_service_proxy_backends is probably the best solution but it removes all proxies. How do we check if other proxies are configured before we delete all of them?
I success, thanks you !!
Thank you! We just had a similar issue where ProxyPass was proxying to the same server causing a loop.We've fixed the issues on our servers following this procedure (I think )
SSH to webserver (or terminal via WHM webinterface)
remove line PROXY_BACKEND=<webserver>
run script: /usr/local/cpanel/scripts/updateuserdomains
clear proxies via API: whmapi1 unset_all_service_proxy_backends username=<account>
run script: /scripts/rebuildhttpdconf
service httpd restart
What's missing for me is an API/script/interface to see what proxies are defined for an account (Or I don't know how to find them...)
So it was a bit of a gamble when removing all proxy backends.
The wrong proxy resulted in the following lines in /etc/apache2/conf/httpd.conf
ProxyPass "http://<this webserver>"
Scripts like /scripts/rebuildhttpdconf should see that ProxyPass is setting a proxy to itself, resulting in a loop followed by an unresponsive httpd.
I don't know if it's still benefitial to create a ticket....
|Thread starter||Similar threads||Forum||Replies||Date|
|Best scenario to migrate emails from CWP to cPanel||Transfers||8|
|W||Transfer from CWP to cPanel||Transfers||9|
|M||Moving to a new server (cpanel to cpanel)||Transfers||31|
|M||SOLVED Directadmin to cpanel without root||Transfers||3|
|K||I want to transfer my gaming website to cpanel server||Transfers||3|