I manually change the /etc/passwd because the location of the files was scramble.
After editing it, all of my sites are still functioning.
One of my site is linking to the wrong directory. like
/var/www/mydomain.com is pointing to /var/www/clients/client1/web2/
when it should be:
/var/www/mydomain.com is pointing to /var/www/clients/client1/web3/
So I deleted the mydomain.com manually under /var/www and create a link again to point the mydomain.com to /var/www/clients/client1/web3/.
But after doing this, all of my sites cannot be access and it is throwing an error:
ERROR 502 - Bad Gateway!
The following error occurred:
This server received an invalid response from an upstream server it accessed to fulfill the request.
If you get this message repeatedly please contact the webmaster.
Is anyone how can I restore my site back?
I need your help badly. This is urgent as my sites are all down..
Thank you in advance.