Install and Configure Nginx as an LBR

Jo ! Can you check out my result, please. I got task failed, but all worked fine I was able to get response from each servers verified connectivity from loadbalancer to each httpd service.
I can repeat this exercise if you wish but I am pretty sure smth is wrong with verification. Additionally my lab broke and I had to restart exercise maybe this caused an issue.

1 Like

Sorry to hear that. We will check and get back to you.

Hi @andrzej, you were right. There was an issue with the validation. We have fixed that now. Your task has been marked successful. Thank you for your patience.


@mmumshad : I also received below output

Task Status - Failed

php-fpm service is not running on App Server 1 php-fpm service is not running on App Server 2 php-fpm service is not running on App Server 3 website is not setup correctly as its not working on LBR URL

Although i could get output below when checked using Host1 option

PHP Test Welcome to xFusionCorp Industries !'; ?>

Could you pls look into it

Hi, guys!
Please help with this challenge
Day by day traffic is increasing on one of the websites managed by the Nautilus production support team. Therefore, the team has observed a degradation in website performance. Following discussions about this issue, the team has decided to deploy this application on a high availability stack i.e on Nautilus infra in Stratos DC. They started the migration last month and it is almost done, as only the LBR server configuration is pending. Configure LBR server as per the information given below:
a. Install nginx on LBR (load balancer) server.
b. Configure load-balancing with the an http context making use of all App Servers.
c. Also make sure Apache service is up and running on all app servers.
d. Once done, you can access the website using StaticApp button on the top bar.

nginx installed on lbr server

/etc/nginx/nginx.conf edited with load balancer

http {
log_format main '$remote_addr - $remote_user [$time_local] “$request” ’
'$status $body_bytes_sent “$http_referer” ’
‘“$http_user_agent” “$http_x_forwarded_for”’;

access_log  /var/log/nginx/access.log  main;

sendfile            on;
tcp_nopush          on;
tcp_nodelay         on;
keepalive_timeout   65;
types_hash_max_size 2048;

include             /etc/nginx/mime.types;
default_type        application/octet-stream;

# Load modular configuration files from the /etc/nginx/conf.d directory.
# See
# for more information.
include /etc/nginx/conf.d/*.conf;

upstream backend {
server {
    listen       80 default_server;
    listen       [::]:80 default_server;
    #server_name  _;
    #root         /usr/share/nginx/html;

    # Load configuration files for the default server block.
    include /etc/nginx/default.d/*.conf;

    location / {
        proxy_pass  http://backend;

    error_page 404 /404.html;
        location = /40x.html {
    error_page 500 502 503 504 /50x.html;
        location = /50x.html {

status nginx Active: active (running)
status httpd on all app server are running
but with curl I get ERROR that port 80 refused
curl: (7) Failed to connect to port 80: Connection refused

You are missing the ports. What port is the apache service listening on for each app server?

1 Like

thanks a lot @mohamed-e
I found this later and now it’s done

Best regard