I installed a new server with Ubuntu 24.04 and migrated my Plesk installation from the old Ubuntu 22.04 VM to the new 24.04 VM.
Everything was fine except for the web service. The domain sites did not load and returned 502 Bad Gateway.
I resolved that by disabling Nginx Apache2 proxy service...