How to install and run Nginx on Windows 10

Nginx is a web server that is very popular on Linux and BSD systems. Many assume that Nginx cannot be installed on Windows. This is not true and in this article we will give you instructions on how to install and run it on Windows 10.

However, according to the Nginx website, there are some restrictions on his behavior that have not been eliminated so far, such as e.g. only one web application can run.

The company behind Nginx said it would address any issues in future releases for Windows. To install and run Nginx successfully in Windows 10, follow these steps.

Step 1: Download the Nginx server
There are many download versions of Windows from Nginx, but we recommend using the "stable version" (stable version). Select the last zip file. In the example of our photo “nginx / Windows-1.16.1”

Step 2: Unzip the downloaded zip file. A folder will be created with the name of the program and the version you downloaded.

Step 3: To run Nginx, select and double-click the Nginx.exe file.

At some point you may see the Windows firewall (if you haven't disabled it) telling you that it has blocked some of the Nginx.exe application. Tell it to “Allow access”.

Step 4: In the next step you need to verify if the installation was successful. To do this, you can go to any browser you want and type "localhost". If you see the following screen that says that the Nginx web server is installed and running successfully, then you are OK.

Step 5: To stop Nginx, you can quit it from the Task Manager window.

Run Nginx on your Windows PC
By default the html folder is the one that hosts your web page. Everything you put in there will run on your web server. Of course you can change it if you open the conf / nginx.conf file. You can create a folder where you want, e.g. c: / Dimitris and have your website in there.

You will need to go to Nginx.conf and change it

location / {root html;

into a

location / {root "c: \ Dimitris";

PreMake whatever changes you want to Nginx.conf with Notepad++ rather than Windows Notepad.

You can also control Nginx through the line , going to the folder you have the program and executing with the following command with one of the 4 switches:
nginx -s [stop | quit | reopen | reload]

Ο Nginx website has a full one of the web server you can see to solve any question you may have.

Briefly
Nginx is a leading web server that is expected to eclipse Apache in the future. It is faster, can be handled more easily at the same time and is reliable. In summary, if you have a simple website that you want to present with Nginx, you can do it immediately and without problems.

iGuRu.gr The Best Technology Site in Greecefgns

every publication, directly to your inbox

Join the 2.087 registrants.

Written by Dimitris

Dimitris hates on Mondays .....

Leave a reply

Your email address is not published. Required fields are mentioned with *

Your message will not be published if:
1. Contains insulting, defamatory, racist, offensive or inappropriate comments.
2. Causes harm to minors.
3. It interferes with the privacy and individual and social rights of other users.
4. Advertises products or services or websites.
5. Contains personal information (address, phone, etc.).