Yes, I tried, but it didn't help.
And if I remember correctly, sw-cp-server - it is a plesk panel gui... I'm sorry if I describe the problem not enough clear.
Error "502 Bad Gateway" nginx shows on customers sites hosted in my Plesk Panel, not in customer CP.