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 of Nginx on Windows. 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 several versions of Windows downloads from Nginx, but we recommend using the "stable version". Select the latest zip file. In our example 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 features 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. For this, you can go to any θέλετε και να πληκτρολογήσετε "localhost". Εάν δείτε την παρακάτω οθόνη που λέει ότι ο διακομιστής web Nginx έχει εγκατασταθεί και λειτουργεί με επιτυχία, τότε είστε εντάξει.

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";

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

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 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.).