nginx is all around


English: Nginx Logo Español: Logo de Nginx

English: Nginx Logo Español: Logo de Nginx (Photo credit: Wikipedia)

As for my new job I need to emulate our production site environment I’ve deployed nginx-1.3.9 onto my Win7-laptop.

I’ve tried to run nginx -t in order to test the inintal config but got

nginx: the configuration file C:/nginx/conf/nginx.conf syntax is ok

nginx: [emerg] bind() to 0.0.0.0:80 failed (10013: An attempt was made to access a socket in a way forbidden by its access permissions

nginx: configuration file C:/nginx/conf/nginx.conf text failed

After googling a bit I’ve found the several solutions of which:

  • firewall (McAfee security center) check has shown no 80 port blocking;
  • running nginx as a Windows service was postponed for some time – as the page under URL isn’t accessible any more;
  • so I’ve simply followd that post and changed the port in nginx.conf.

After that it has worked fine.
In order to finalize nginx administration experience I’ve followed this post’s instructions and created two bat files for start and stop.

Now what I still have to

  • get to know how to run a Grails app on nginx and connect it to the PostgreSQL DBS.