First of all thank you for read my post.
I am facing the issue with media upload on my website below is my VPS Configuration.
When I checked in to firefox consol panel, I found there is 502 Bad Gateway error occurring while uploading the media(picture/image).
Below is error code which i am getting in console panel.
"NetworkError: 502 Bad Gateway - http://example.com/wp-admin/async-upload.php"