Day 16 - 100 days of Code

This is what i get when i submit the task: - ‘nginx’ on LBR Server is not configured to use all app servers

  • This is my work:
    thor@jumphost ~$ ssh tony@stapp01
    The authenticity of host ‘stapp01 (172.16.238.10)’ can’t be established.
    ED25519 key fingerprint is SHA256:VsZLOQcahVkli230sk8xK5CtYFNvts90/Kbiacl90jA.
    This key is not known by any other names
    Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
    Warning: Permanently added ‘stapp01’ (ED25519) to the list of known hosts.
    tony@stapp01’s password:
    [tony@stapp01 ~]$ sudo -i

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for tony:
[root@stapp01 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:10:27 UTC; 1min 23s ago
Docs: man:httpd.service(8)
Main PID: 1677 (httpd)
Status: “Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec”
Tasks: 177 (limit: 411434)
Memory: 19.0M
CGroup: /docker/ef3c6ee7f8ba199ca8b2f884613b369e71772ce9c48300fcfb46710b2583035b/system.slice/httpd.ser>
├─1677 /usr/sbin/httpd -DFOREGROUND
├─1684 /usr/sbin/httpd -DFOREGROUND
├─1685 /usr/sbin/httpd -DFOREGROUND
├─1686 /usr/sbin/httpd -DFOREGROUND
└─1687 /usr/sbin/httpd -DFOREGROUND

Nov 14 12:10:27 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Failed to send unit change signal>
Nov 14 12:10:27 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:10:36 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:10:46 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:10:56 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:11:06 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:11:16 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:11:26 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:11:36 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:11:46 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
[root@stapp01 ~]# ss -tupln | grep httpd
tcp LISTEN 0 511 0.0.0.0:3004 0.0.0.0:* users:((“httpd”,pid=1687,fd=3),(“httpd”,pid=1686,fd=3),(“httpd”,pid=1685,fd=3),(“httpd”,pid=1677,fd=3))
[root@stapp01 ~]# exit
logout
[tony@stapp01 ~]$ exit
logout
Connection to stapp01 closed.
thor@jumphost ~$ ssh loki@stlb01
The authenticity of host ‘stlb01 (172.16.238.14)’ can’t be established.
ED25519 key fingerprint is SHA256:YLBPS1+Y2HeLR1HXemTL2eQcHX/NUln/4Q275RtgiGk.
This key is not known by any other names
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added ‘stlb01’ (ED25519) to the list of known hosts.
loki@stlb01’s password:
[loki@stlb01 ~]$ sudo -i

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

#1) Respect the privacy of others.
#2) Think before you type.
#3) With great power comes great responsibility.

[sudo] password for loki:
[root@stlb01 ~]# yum install nginx -y
CentOS Stream 9 - BaseOS 31 kB/s | 7.5 kB 00:00
CentOS Stream 9 - BaseOS 1.7 MB/s | 8.8 MB 00:05
CentOS Stream 9 - AppStream 39 kB/s | 7.6 kB 00:00
CentOS Stream 9 - AppStream 17 MB/s | 25 MB 00:01
CentOS Stream 9 - Extras packages 41 kB/s | 8.3 kB 00:00
CentOS Stream 9 - Extras packages 46 kB/s | 20 kB 00:00
Extra Packages for Enterprise Linux 9 - x86_64 135 kB/s | 34 kB 00:00
Extra Packages for Enterprise Linux 9 - x86_64 24 MB/s | 20 MB 00:00
Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64 4.3 kB/s | 993 B 00:00
Extra Packages for Enterprise Linux 9 - Next - x86_64 100 kB/s | 24 kB 00:00
Extra Packages for Enterprise Linux 9 - Next - x86_64 40 kB/s | 289 kB 00:07
Dependencies resolved.

Package Architecture Version Repository Size

Installing:
nginx x86_64 2:1.20.1-24.el9 appstream 36 k
Installing dependencies:
centos-logos-httpd noarch 90.8-3.el9 appstream 1.5 M
nginx-core x86_64 2:1.20.1-24.el9 appstream 570 k
nginx-filesystem noarch 2:1.20.1-24.el9 appstream 9.3 k
Installing weak dependencies:
logrotate x86_64 3.18.0-12.el9 baseos 74 k

Transaction Summary

Install 5 Packages

Total download size: 2.2 M
Installed size: 4.5 M
Downloading Packages:
(1/5): nginx-1.20.1-24.el9.x86_64.rpm 97 kB/s | 36 kB 00:00
(2/5): logrotate-3.18.0-12.el9.x86_64.rpm 198 kB/s | 74 kB 00:00
(3/5): nginx-filesystem-1.20.1-24.el9.noarch.rpm 100 kB/s | 9.3 kB 00:00
(4/5): nginx-core-1.20.1-24.el9.x86_64.rpm 1.3 MB/s | 570 kB 00:00
(5/5): centos-logos-httpd-90.8-3.el9.noarch.rpm 1.1 MB/s | 1.5 MB 00:01

Total 1.2 MB/s | 2.2 MB 00:01
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Running scriptlet: nginx-filesystem-2:1.20.1-24.el9.noarch 1/5
Installing : nginx-filesystem-2:1.20.1-24.el9.noarch 1/5
Installing : nginx-core-2:1.20.1-24.el9.x86_64 2/5
Installing : centos-logos-httpd-90.8-3.el9.noarch 3/5
Running scriptlet: logrotate-3.18.0-12.el9.x86_64 4/5
Installing : logrotate-3.18.0-12.el9.x86_64 4/5
Running scriptlet: logrotate-3.18.0-12.el9.x86_64 4/5
Created symlink /etc/systemd/system/timers.target.wants/logrotate.timer → /usr/lib/systemd/system/logrotate.timer.

Installing : nginx-2:1.20.1-24.el9.x86_64 5/5
Running scriptlet: nginx-2:1.20.1-24.el9.x86_64 5/5
Verifying : logrotate-3.18.0-12.el9.x86_64 1/5
Verifying : centos-logos-httpd-90.8-3.el9.noarch 2/5
Verifying : nginx-2:1.20.1-24.el9.x86_64 3/5
Verifying : nginx-core-2:1.20.1-24.el9.x86_64 4/5
Verifying : nginx-filesystem-2:1.20.1-24.el9.noarch 5/5

Installed:
centos-logos-httpd-90.8-3.el9.noarch logrotate-3.18.0-12.el9.x86_64 nginx-2:1.20.1-24.el9.x86_64
nginx-core-2:1.20.1-24.el9.x86_64 nginx-filesystem-2:1.20.1-24.el9.noarch

Complete!
[root@stlb01 ~]# systemctl start nginx
[root@stlb01 ~]# systemctl enable nginx
Created symlink /etc/systemd/system/multi-user.target.wants/nginx.service → /usr/lib/systemd/system/nginx.service.
[root@stlb01 ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:14:35 UTC; 33s ago
Main PID: 2247 (nginx)
Tasks: 17 (limit: 411434)
Memory: 16.0M
CGroup: /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service
├─2247 “nginx: master process /usr/sbin/nginx”
├─2248 “nginx: worker process”
├─2249 “nginx: worker process”
├─2250 “nginx: worker process”
├─2251 “nginx: worker process”
├─2252 “nginx: worker process”
├─2253 “nginx: worker process”
├─2254 “nginx: worker process”
├─2255 “nginx: worker process”
├─2256 “nginx: worker process”
├─2257 “nginx: worker process”
├─2258 “nginx: worker process”
├─2259 “nginx: worker process”
├─2260 “nginx: worker process”
├─2261 “nginx: worker process”
├─2262 “nginx: worker process”
└─2263 “nginx: worker process”

Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: New main PID 2247 belongs to service, we are happy.
Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Main PID loaded: 2247
Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Changed start → running
Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Job 236 nginx.service/start finished, result=done
Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: Started The nginx HTTP and reverse proxy server.
Nov 14 12:14:35 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to send unit change signal for nginx.service: Connection reset by peer
Nov 14 12:14:49 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Changed dead → running
Nov 14 12:14:49 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to reset devices.allow/devices.deny: Operation not permitted
Nov 14 12:14:49 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to set ‘trusted.invocation_id’ xattr on control group /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service, ignoring: Operation not permitted
Nov 14 12:14:49 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to remove ‘trusted.delegate’ xattr flag on control group /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service, ignoring: Operation not permitted
[root@stlb01 ~]# /etc/nginx/nginx.config
-bash: /etc/nginx/nginx.config: No such file or directory
[root@stlb01 ~]# vi /etc/nginx/nginx.config
[root@stlb01 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@stlb01 ~]# systemctl restart nginx
[root@stlb01 ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:20:01 UTC; 12s ago
Process: 2873 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 2874 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 2881 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 2888 (nginx)
Tasks: 17 (limit: 411434)
Memory: 16.1M
CGroup: /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service
├─2888 “nginx: master process /usr/sbin/nginx”
├─2889 “nginx: worker process”
├─2890 “nginx: worker process”
├─2891 “nginx: worker process”
├─2892 “nginx: worker process”
├─2893 “nginx: worker process”
├─2894 “nginx: worker process”
├─2895 “nginx: worker process”
├─2896 “nginx: worker process”
├─2897 “nginx: worker process”
├─2898 “nginx: worker process”
├─2899 “nginx: worker process”
├─2900 “nginx: worker process”
├─2901 “nginx: worker process”
├─2902 “nginx: worker process”
├─2903 “nginx: worker process”
└─2904 “nginx: worker process”

Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[2881]: nginx.service: Executing: /usr/sbin/nginx
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Child 2881 belongs to nginx.service.
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Control process exited, code=exited, status=0/SUCCESS (success)
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Got final SIGCHLD for state start.
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: New main PID 2888 belongs to service, we are happy.
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Main PID loaded: 2888
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Changed start → running
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Job 276 nginx.service/start finished, result=done
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: Started The nginx HTTP and reverse proxy server.
Nov 14 12:20:01 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to send unit change signal for nginx.service: Connection reset by peer
[root@stlb01 ~]# curl http://172.16.238.10:3002
curl: (7) Failed to connect to 172.16.238.10 port 3002: Connection refused
[root@stlb01 ~]# curl http://172.16.238.11:3002
curl: (7) Failed to connect to 172.16.238.11 port 3002: Connection refused
[root@stlb01 ~]# vi /etc/nginx/nginx.config
[root@stlb01 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@stlb01 ~]# systemctl restart httpd
Failed to restart httpd.service: Unit httpd.service not found.
[root@stlb01 ~]# systemctl restart nginx
[root@stlb01 ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:24:24 UTC; 24s ago
Process: 3200 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 3201 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 3208 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 3215 (nginx)
Tasks: 17 (limit: 411434)
Memory: 16.0M
CGroup: /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service
├─3215 “nginx: master process /usr/sbin/nginx”
├─3216 “nginx: worker process”
├─3217 “nginx: worker process”
├─3218 “nginx: worker process”
├─3219 “nginx: worker process”
├─3220 “nginx: worker process”
├─3221 “nginx: worker process”
├─3222 “nginx: worker process”
├─3223 “nginx: worker process”
├─3224 “nginx: worker process”
├─3225 “nginx: worker process”
├─3226 “nginx: worker process”
├─3227 “nginx: worker process”
├─3228 “nginx: worker process”
├─3229 “nginx: worker process”
├─3230 “nginx: worker process”
└─3231 “nginx: worker process”

Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[3208]: nginx.service: Executing: /usr/sbin/nginx
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Child 3208 belongs to nginx.service.
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Control process exited, code=exited, status=0/SUCCESS (success)
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Got final SIGCHLD for state start.
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: New main PID 3215 belongs to service, we are happy.
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Main PID loaded: 3215
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Changed start → running
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Job 316 nginx.service/start finished, result=done
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: Started The nginx HTTP and reverse proxy server.
Nov 14 12:24:24 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to send unit change signal for nginx.service: Connection reset by peer
[root@stlb01 ~]# curl http://stapp01:3002
curl: (7) Failed to connect to stapp01 port 3002: Connection refused
[root@stlb01 ~]# curl http://172.16.238.10:3002
curl: (7) Failed to connect to 172.16.238.10 port 3002: Connection refused
[root@stlb01 ~]# exit
logout
[loki@stlb01 ~]$ exit
logout
Connection to stlb01 closed.
thor@jumphost ~$ ssh tony@stapp01
tony@stapp01’s password:
Last login: Fri Nov 14 12:11:24 2025 from 172.16.238.3
[tony@stapp01 ~]$ sudo -i
[sudo] password for tony:
[root@stapp01 ~]# systemctl status httpd
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:10:27 UTC; 16min ago
Docs: man:httpd.service(8)
Main PID: 1677 (httpd)
Status: “Total requests: 0; Idle/Busy workers 100/0;Requests/sec: 0; Bytes served/sec: 0 B/sec”
Tasks: 177 (limit: 411434)
Memory: 20.1M
CGroup: /docker/ef3c6ee7f8ba199ca8b2f884613b369e71772ce9c48300fcfb46710b2583035b/system.slice/httpd.ser>
├─1677 /usr/sbin/httpd -DFOREGROUND
├─1684 /usr/sbin/httpd -DFOREGROUND
├─1685 /usr/sbin/httpd -DFOREGROUND
├─1686 /usr/sbin/httpd -DFOREGROUND
└─1687 /usr/sbin/httpd -DFOREGROUND

Nov 14 12:25:47 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:25:57 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:07 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:17 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:27 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:37 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:47 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:26:57 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:27:07 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
Nov 14 12:27:17 stapp01.stratos.xfusioncorp.com systemd[1]: httpd.service: Got notification message from PID>
[root@stapp01 ~]# ss -tupln | grep httpd
tcp LISTEN 0 511 0.0.0.0:3004 0.0.0.0:* users:((“httpd”,pid=1687,fd=3),(“httpd”,pid=1686,fd=3),(“httpd”,pid=1685,fd=3),(“httpd”,pid=1677,fd=3))
[root@stapp01 ~]# exit
logout
[tony@stapp01 ~]$ exit
logout
Connection to stapp01 closed.
thor@jumphost ~$ ssh loki@stlb01
loki@stlb01’s password:
Last login: Fri Nov 14 12:13:15 2025 from 172.16.238.3
[loki@stlb01 ~]$ sudo -i
[sudo] password for loki:
[root@stlb01 ~]# vi /etc/nginx/nginx.config
[root@stlb01 ~]# nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
[root@stlb01 ~]# systemctl restart nginx
[root@stlb01 ~]# systemctl status nginx
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/usr/lib/systemd/system/nginx.service; enabled; preset: disabled)
Active: active (running) since Fri 2025-11-14 12:31:34 UTC; 10s ago
Process: 4154 ExecStartPre=/usr/bin/rm -f /run/nginx.pid (code=exited, status=0/SUCCESS)
Process: 4155 ExecStartPre=/usr/sbin/nginx -t (code=exited, status=0/SUCCESS)
Process: 4162 ExecStart=/usr/sbin/nginx (code=exited, status=0/SUCCESS)
Main PID: 4169 (nginx)
Tasks: 17 (limit: 411434)
Memory: 16.0M
CGroup: /docker/4d41d19e7fd412e5517d293d74ae020acd7dcbc7b192e6349015a89f59985daa/system.slice/nginx.service
├─4169 “nginx: master process /usr/sbin/nginx”
├─4170 “nginx: worker process”
├─4171 “nginx: worker process”
├─4172 “nginx: worker process”
├─4173 “nginx: worker process”
├─4174 “nginx: worker process”
├─4175 “nginx: worker process”
├─4176 “nginx: worker process”
├─4177 “nginx: worker process”
├─4178 “nginx: worker process”
├─4179 “nginx: worker process”
├─4180 “nginx: worker process”
├─4181 “nginx: worker process”
├─4182 “nginx: worker process”
├─4183 “nginx: worker process”
├─4184 “nginx: worker process”
└─4185 “nginx: worker process”

Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[4162]: nginx.service: Executing: /usr/sbin/nginx
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Child 4162 belongs to nginx.service.
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Control process exited, code=exited, status=0/SUCCESS (success)
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Got final SIGCHLD for state start.
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: New main PID 4169 belongs to service, we are happy.
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Main PID loaded: 4169
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Changed start → running
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Job 491 nginx.service/start finished, result=done
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: Started The nginx HTTP and reverse proxy server.
Nov 14 12:31:34 stlb01.stratos.xfusioncorp.com systemd[1]: nginx.service: Failed to send unit change signal for nginx.service: Connection reset by peer
[root@stlb01 ~]# curl http://172.16.238.10:3004
Welcome to xFusionCorp Industries![root@stlb01 ~]# curl http://172.16.238.11:3004
Welcome to xFusionCorp Industries![root@stlb01 ~]# curl http://172.16.238.12:3004
Welcome to xFusionCorp Industries![root@stlb01 ~]#

HI @Slicky

It would have helped if you had shared the nginx.conf you have configured on the LoadBalancer server in a code block.

Hi Santosh, this is my stlb01 config:

user nginx;
worker_processes auto;

events {
worker_connections 1024;
}

http {
# Upstream load-balancer pool
upstream app_backend {
server stapp01:6400;
server stapp02:6400;
server stapp03:6400;
}

sendfile on;
keepalive_timeout 65;

server {
    listen 80;
    server_name stlb01;

    location / {
        proxy_pass http://app_backend;

        # Standard proxy headers
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header X-Forwarded-Proto $scheme;
    }
}

}