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: Make it of 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 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 ς θέλετε και να πληκτρολογήσετε “localhost”. Εάν δείτε την παρακάτω which says Nginx web server is installed and running successfully, then you are good to go.

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 the web σας. Ότι βάζετε εκεί μέσα θα τρέχει στο web server σας. Φυσικά μπορείτε να τον αλλάξετε αν ανοίξετε το αρχείο conf/nginx.conf. Μπορείτε να φτιάξετε ένα φάκελο όπου θέλετε , π.χ. c:/Dimitris και να έχετε εκεί μέσα την ιστοσελίδα σας.

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

 / { 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 through it command line by going to the folder where you have the program and running 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

Subscribe to via Email

Subscribe to this blog and receive of new posts by email.

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