I have installed NGINX on Ubuntu 18.04. After installation, i ran the command: "nginx -t" and i got the messages that the configuration syntax is OK and the test is also successful. The service is also running which I tested using the command "service nginx status".
However, when i typed my IP in a web browser to check wether nginx is really up and running, I got the error "502 Bad Gateway".
Please help me resolve this issue. Thank you in advance.