
nginx [engine x] is an HTTP and reverse proxy server, a mail proxy server, and a generic TCP/UDP proxy server, originally written by Igor Sysoev.
This package provides an nssm Windows service wrapper for it which creates a standard Windows
service named nginx to manage the server.
choco install nginx-service the stable will be installed. To access mainline version, you must use pre-release --pre switch or specify exact version number, which has -mainline appended to it.During installation nginx-service will create following directory structure:
C:/tools/nginx/
├── conf
│ ├── nginx.original.conf {conf file shipped with official .zip}
│ ├── nginx.conf {tailored version of above file}
│ └── ...
├── conf.d
│ └── server.default.conf
├── html
│ └── index.html
├── logs
│ └── {Required}
└── temp
└── {Required}
conf.dserver*.conf where * is a wildcard.conf files are included (and reused) manually from server*.conf, i.e. PHP location directiveconf.d is emptyAfterwards, you can start and stop the service with following commands: nssm start nginx-service and nssm stop nginx-service
On default, the service will autostart with Windows. To disable this use Services GUI console.
See the nginx.org for more detailed documentation.