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 it is not possible to install Nginx on . This is not true and in this article we will guide you 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. One will be created to of the program and the version you have 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 have not turned it off) tell you that it has blocked some features of the Nginx.exe application. Tell him "Allow access".

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

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

Run Nginx on your Windows PC
From before the html folder is the one that hosts your web page. Whatever 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 make a folder wherever 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";

Prefer to make any changes you want to Nginx.conf with Notepad ++ rather than with Windows Notebook.

You can also control Nginx via the command line by 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 complete list of web server applications that you can view to answer any questions you may have.

Briefly
Nginx is a leading web server that is expected to overshadow Apache in the future. It is faster, can handle issues 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 right away 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.).