The company's online shop is the lab-shop application on the server, and people open it through nginx by the name shop.lab.test. After an application update the site stopped opening.
Check whether the application is running, then open the site. “Start” will set up the server.
Open the shop
Check whether the shop application lab-shop is running, then open the site shop.lab.test.
First, predict
The application is running. What will the first line of the curl -i answer be?
Now start the exercise, run the command and compare your prediction with the output.
Who produced the 502 Bad Gateway answer?
-
systemd starts services and writes no HTTP answers: the
Serverheader says nginx. -
The
Serverheader and the bottom of the page saynginx/1.24.0 (Ubuntu): the answer came from nginx. -
curl prints what it received. It reports its own errors as a
curl: (7) …line, while here there is an HTTP answer withServer: nginx.
nginx produced the 502 Bad Gateway answer: its name is in the Server header and at the bottom of the page.