Install Nginx on WSL

Short process install Nginx in WSL environment.

sudo apt-get install nginx
nano /etc/nginx/nginx.conf

Add line

master_process off;

Open default config and comment line out.

nano /etc/nginx/sites-available/default
# listen [::]:80 default_server ipv6only=on;

Save and exit. Then start nginx.

sudo service nginx start

Open browser and type in the address bar.

Leave a Reply

Your email address will not be published.