Setting up nginx


Service of nginx is not starting!!
Please check the below screenshots!!

Hey Ashutosh,

As per your screenshot, there seems to be something wrong with nginx configuration file.

Once you have made changes to the nginx configuration file, before restarting nginx service did you check the configuration file for any syntax errors?

nginx -t [This will show if any errors in your configuration file]
systemctl status nginx [ May give some hints, check for any abnormal things shown there]
journalctl -xe [This command will also show errors related to your nginx startup, so check here as well]

Rest depends on how you proceed further with steps.