[Answered ]-Why nginx not starting my service?

1👍

Place the above code in nginx.conf file which is located in /etc/nginx/.Then your configuration file looks like this

nginx.conf

server {
   listen localhost:8006;

   location / {
   proxy_pass http://127.0.0.1:8001;
   }

   location /static/ {
   autoindex on;
   alias /home/user/Desktop/projects/28-05-2014/HMS/static/;
}
}
👤Shiva

1👍

Not enough information to answer.

Enable logging:

access_log /var/log/nginx/example.access.log;
error_log /var/log/nginx/example.error.log;

And look at what the log files says. If you cannot figure it out, please post the log outputs here. Question does not provide enough data. I ll update this answer as you update your question.

Leave a comment