+4 votes
43 views
Install NGINX Server on Windows

in Windows11 by (551k points)
reopened | 43 views

1 Answer

+5 votes
Best answer

How to install Nginx on Windows

To stay up to date, remember to subscribe to our YouTube channel!
SUBSCRIBE ON YOUTUBE

 

Working in environments where it is required to create and manage web applications is a vital point in the modern world where everything works online but for a correct and optimal use of these functions, stable, secure, dynamic and versatile applications are required for centralized work. and Nginx is one of the most complete options..

 

Nginx has been developed as a reverse proxy and HTTP server, a configured mail proxy server and a generic TCP/UDP proxy server to centralize in one place the most common tasks that developers carry out in this segment, it can be used as a web server to serve static content such as HTML, CSS and multimedia files, but also allows us to load balance the traffic of various servers on the local network.

 

 

One of the advantages of Nginx is its ability to handle concurrent connections, less use of resources and the ability to scale horizontally allowing the use of large amounts of information without being affected..

 

Characteristics
Some of its most outstanding features are:

 

  • HTTP/3 support
  • FastCGI, uwsgi, SCGI, and memcached server caching support; load balancing and fault tolerance
  • HTTP/2 support
  • modular architecture
  • Static and index file service
  • Automatic indexing functions
  • It has a reverse proxy with caching, balancing and load management and full fault tolerance
  • SSL and TLS support WITHOUT
  • Can redirect error codes 3xx-5xx
  • You can limit the number of simultaneous connections
  • It is in the ability to execute different functions based on the client
  • Supports PUT, DELETE, MKCOL, COPY, and MOVE methods
  • embedded perl
  • IP-based geolocation function
  • Access control based on client IP address or password (basic HTTP authentication)
  • User authentication using your own authentication server
  • STARTTLS and STLS support

 

 

Now let's see how to install Nginx on Windows and thus have this powerful management tool at hand.

 

How to install Nginx on Windows

 

Step 1

The first thing will be to go to the following official link to download the latest version of the Nginx application:

 

 

 Nginx

 

image

 

Step 2

Once downloaded, we are going to go to the download folder and there we click on "Extract all":

 

image

 

Step 3

In the pop-up window we define where the extraction will be carried out:

 

image

 

Step 4

We click on "Extract" to apply the process:

 

image

 

step 5

Now TechnoWikis recommends you to copy this folder on drive C in one of the local folders:

 

image

 

step 6

We access this folder and double click on the executable file:

 

image

 

step 7

We will see the following message: We click on Execute to start the utility and now we will see the following:

 

 

image

 

step 8

We must accept the firewall permissions.

 

image

 

step 9

It is time to validate that it has been installed, we open a browser and enter the address 127.0.0.1 or the word localhost, when we press Enter we should see the Nginx message:

 

image

 

step 10

In case we need to end the Nginx service, we are going to open the Task Manager from the Start menu:

 

image

 

step 11

There we are going to locate the service called Nginx, right click on it and select the "Go to details" option:

 

image

 

step 12

Now we select each Nginx dependency:

 

image

 

step 13

We click on "End task" and confirm the process:

 

image

 

step 14

We see that there is no Nginx dependency left:

 

image

 

step 15

If we go to the browser and refresh the page we can see the connection error:

 

image

 

step 16

To start the Nginx service, we open PowerShell as administrator:

 

image

 

step 17

Before, we are going to right click on the Nginx file and select "Properties":

 

image

 

step 18

In the pop-up window we copy the file path:

 

image

 

step 19

In the PowerShell console we go to that path using the "cd" command but it is possible to see the following:

 

image

 

step 20

If so, we open the CMD console as administrators:

 

image

 

step 21

We go to the route where Nginx is:

 

image

 

step 22

Now we start Nginx by running:
 start nginx 
image

 

Step 23

We can check in the Task Manager that the service is available again:

 

image

 

step 24

Some commands that we can use in the terminal are:

 

  • nginx -s stop: perform a fast shutdown
  • nginx -s quit: close Nginx
  • nginx -s reload: start new worker processes with new configuration if edited
  • nginx -s reopen: reopen log files

 

step 25

After this, in the search engine we enter the word "features" and click on the option "Activate or deactivate Windows features":

 

image

 

step 26

We will locate the line “Internet Information Services”:

 

image

 

step 27

We click on the + sign and activate its box and the necessary boxes in "Web Management Tools":

 

image

 

Step 28

We click "OK" to start the process:

 

image

 

Step 29

The changes will be applied:

 

image

 

step 30

At the end we will see the following:

 

image

 

step 31

We close the wizard and open IIS from the start browser:

 

image

 

step 32

We click on "Internet Information Services Manager" to open the console:

 

image

 

Step 33

Now we click on the name of the connection, we go to the option "Default Web Site" and there we right click and select "Explore":

 

image

 

Step 34

You can see the files associated with the console:

 

image

 

step 35

We open the browser and when we refresh the page we can see the IIS window:

 

image

 

Step 36

To make any changes to the Nginx file, we go to the path where it is installed and locate the "html" folder:

 

image

 

Step 37

We open the folder, right click on the "index" file and select "Open with - Choose another application":

 

image

 

Step 38

We select the notepad:

 

image

 

Step 39

We will see the structure of the file:

 

image

 

step 40

We make the desired changes in the <title> fields:

 

image

 

Step 41

We save the changes and in the browser we will see this update:

 

image

 

With this form Nginx has been installed in Windows and we are ready for its full use..

 


by (3.5m points)
edited

Related questions

+3 votes
1 answer
asked Jul 6, 2020 in Linux / Unix by backtothefuture (551k points) | 726 views
+3 votes
1 answer
asked Sep 20, 2019 in Windows 10 by backtothefuture (551k points) | 347 views
+4 votes
1 answer
asked Nov 1, 2019 in Linux / Unix by backtothefuture (551k points) | 256 views
+4 votes
1 answer
asked Apr 27, 2020 in PHP by backtothefuture (551k points) | 1.2k views
+4 votes
1 answer
asked Nov 17, 2019 in Linux / Unix by backtothefuture (551k points) | 249 views
Sponsored articles cost $40 per post. You can contact us via Feedback
10,634 questions
10,766 answers
510 comments
3 users