Day 16 Task : Install and configure Nginx as an LBR

I got this message when trying to check “nginx on the LBR Server is not configured to use all app servers.”

How do I configure it.

This is a good summary of how to do this task.

refer to this detailed solution for help nd star my repo if helpful .

I do not get through with this task.

Where are you running into trouble. The notes should tell you the details for the steps, although in general:

  • Check httpd on the 3 app servers to make sure they’re running, and to check what port they are running on.
  • You need to configure nginx on stlb01 to act as a loadbalancer; the notes give enough detail so you should be able to do that.
  • Check the loadbalancer on port 80 to make sure it’s hitting the app servers on the correct port.

I am stuck at trying to edit the nginx configuration file. I keep getting error message when I try to test the nginx after editing the configuration

Please be a bit more specific as to what your problem is here. You say “I get an error”. What’s the error you’re getting? Right now it’s not clear what you’re doing, so it’s hard to give you suggesions beyond what we’ve given you.