Hi @neelam,
Thanks for the feedback. Yes, this seems a configuration problem on the Nginx side.
I found this similar post where the error code is the same as yours and it also contains a solution. Please check it out as it should help you in the resolution.
Also, this is the guide link I am currently using on my local machine. It might also give you some more useful hints (e.g. how to check and validate the configuration files, adding hostname in /etc/hosts etc).
I hope this helps.