Introducing NginX

I, Arslan Mirbzergi, intend to share my personal experiences with you, you can see examples and practical projects on my website and implement them in your own projects. In this article, I went to NginX.

This service is actually an open source web server that is free and very efficient. The idea and its expansion took place in 2002 by a Russian person and was made public in 2004.

What is a web server?

Suppose you have a JavaScript code and you want to live it, i.e. put it on a server or host so that everyone can see it. In these cases, they use a web server such as Nginx or Apache2, which is actually a web server, because your server has a public IP, so nginx loads that page for you.

Here I’m going to review the general and practical use of Eng X, which you can see as a project and an example on my GitHub.

1. How should you use EngX if you want to load a JavaScript or HTML and CSS page?
2. What should we do if we want to use Eng for Port forwarding?
3. If our protocol isHTTP and we want to do proxy or port forwarding, how should we use it?
4. If our protocol is UDP and we want to do proxy or port forwarding, how should we use it?
5. If our protocol is TCP and we want to do proxy or port forwarding, how should we use it?

The next item is Load with Balancing nginx, which I personally did with HA proxy and I will explain to you in that section, if you need to load balancing with nginx, email me to prepare a practical example for you.

And in the end,

Codes and commands of all of these can be found on my GitHub.

GitHub links for each of the items:

Load Js:

https://github.com/arsalanmrz/nginx-load-js

Port Forwarding:

https://github.com/arsalanmrz/nginx-port-forwarding

HTTP Proxy:

https://github.com/arsalanmrz/nginx-http-proxy

UDP/HTTP/TCP:

https://github.com/arsalanmrz/nginx-udp-http-tcp-proxy