:80
Mastering Nginx:
A Begineer’s
Guide
EXPLORE ->
by Prabhjot Singh
1 What is Nginx
Nginx, pronounced "engine-x,"
is a versatile and high-
performance open-source
web server and reverse proxy
server. Originally created to
solve the C10k problem
(handling 10,000 concurrent
connections), Nginx has
evolved into a powerful
solution for a wide range of
web serving tasks.
2 Key Features
-> Load Balancing: Distributes the
request coming to multiple servers.
-> Reverse Proxy: Forward the requests
to another port no. (Helps in hiding port)
-> SSL/TLS Configuration: Secure the
connection with HTTPS requests
-> Caching: cache the static content
and improves site speed
3 Server Config
Server running on port 80 with domain name
example.com and whose static html file is present
in root path
4 Load Balancing
Two servers are running and the requests will be
distributed among them. The Algorithm use is
Round Robin Algorithm (default)
5 SSL Configuration
The server is running at 443 port and the location
of the SSL certificate and SSL certificate key are to
be given as shown
6 Reverse Proxy
The server request to port 80 will now be
forwarded to google.com which means
domain.com -> google.com
6 Caching files
By using proxy_cache we can cache the requests
and whenever the same request is called multiple
times nginx cache it
FOLLOW FOR MORE
SUCH CONTENT!