The following procedure must be ran on an elevated cygwin terminal.

1. Run the following command and accept the defaults.

cygserver-config

2. Register the nginx as a service with the following command:

cygrunsrv --install nginx --path /usr/sbin/nginx.exe --disp "CYGWIN nginx" --termsig QUIT --shutdown --dep cygserver