You can download nginx for windows from
https://nginx.org/en/download.html
To download nginx from command line, use following command in PowerShell
Invoke-WebRequest -Uri https://nginx.org/download/nginx-1.19.6.zip -OutFile nginx-1.19.6.zip
When using Nginx on Windows, you need to escape paths with \ like following
root C:\\sites\\my-site;
For SSL, i used
listen 443 ssl http2; ssl_certificate C:\\nginx\\ssl\\crt\\dedi.ai-chain.pem; ssl_certificate_key C:\\nginx\\ssl\\crt\\dedi.ai-key.pem;
See Nginx
Leave a Reply