A
A
AntonIgin2017-08-17 09:56:55
linux
AntonIgin, 2017-08-17 09:56:55

502 Bad Gateway instead of Welcome to Nginx - what's the problem?

Installed and started nginx:
sudo apt-get install nginx
sudo /etc/init.d/nginx start
502 Bad Gateway is displayed instead of a greeting. As far as I understand, you need to go by IP, which can be obtained with the ip address show command? In response, I received the following text, from which I pulled out 192.168.10.2.
But when I go to 192.168.10.2 or 192.168.10.2:8000, the error is the same. What could be the problem? The /var/www/html/ folder contains both index.html and index.nginx-debian.html. Maybe in the settings themselves I lost something I needed while experimenting (tried to install the site)? Reinstalled nginx, did not help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Derevyanko Alexander, 2017-08-17
@dio4

A 502 Bad Gateway error means that Nginx is unable to receive a response from some service. Gateway means that the error did not occur within the server itself, but somewhere at the level of communication between it and another program.
here

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question