Linux Firewalld Setup nginx 403 Forbidden error

Awesome! Good work @TharunTeja4676!

am I supposed to update the nginx conf file like this?

running systemctl nginx restart command is showing an error message.

Hi @swaroopcs88,

Everything looks correct to me, except for this:

listen 8099 default_server;

Remove default_server from the first listen statement/directive, then try running systemctl nginx restart. That should do the trick.

Hope this helps :smile:

server {
  listen <port>;
  listen          [::]:<port>;
  server_name     172.16.238.10;
  root            /usr/share/nginx/html;
}