502 bad getway error in nginx 1.10 /ubuntu please guide to resolve
my email id is yogiparmar91@gmail.com
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
What type of application are you running? A 502 error generally indicates that nginx was unable to reach the upstream service needed to process the request. This can either be the php-fpm process for PHP sites or it could be another type of service using a proxy_pass configuration.
If this is a php site you can try: