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

Invoke-WebRequest -Uri https://nginx.org/download/nginx-1.19.6.zip -OutFile nginx-1.19.6.zip

Auto Start Nginx on Windows

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

Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *