Nginx on Windows
You can download nginx for windows from
https://nginx.org/en/download.html
To download nginx from command line, use following command in PowerShell
1 |
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
1 |
root C:\\sites\\my-site; |
For SSL, i used
1 2 3 |
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