NGINX 8hours

NGINX is an open source web server available under the GNU General Public License. NGINX is known for its high performance and low resource use. It was designed to serve as a drop-in replacement for Apache HTTP Server.

Chapter 1 : Installing NGINX and Third-Party Modules

NGINX is a lightweight and efficient web server for hosting multiple websites. It is designed to be quick, easy to configure, and highly scalable.

Installing NGINX using a package manager

Installing NGINX from source

Configuring SSL support

Enabling various modules

Finding and installing third-party modules


Chapter 2 : A Configuration Guide

Before we start configuring NGINX, there are a few things that need to be considered for our setup. These include: how many domains will you have, the level of authentication required for your sites…

The basic configuration format

Using the include files

The HTTP server section

The virtual server section

Locations – where, when, and how


Chapter 3 : Using the mail Module

NGINX mail Module is a module written in NGINX and uses Amazon’s Simple Email Service (SES) to send email…

Basic proxy service

Authentication service

Combining with memcached

Interpreting log files

Operating system limits


Chapter 5 : Reverse Proxy Advanced Topics

Reverse proxy is an essential tool for web application security. It allows different servers to connect to the same public facing host for load balancing and failover purposes.

Security through separation

Isolating application components for scalability

Reverse proxy performance tuning


Chapter 6 : The NGINX HTTP Server

NGINX is a great way to set up a secure web server that can handle high traffic loads. With NGINX, you will need less hardware such as RAM and disk space than traditional servers like Apache or Microsoft IIS.

NGINX’s architecture

The HTTP core module

Using limits to prevent abuse

Restricting access

Streaming media files

Predefined variables


Using NGINX with PHP-FPM

Wiring NGINX and uWSGI together


Chapter 7 : NGINX for the Application Developer

When you are working with the server-side programming language PHP, you want to know which web servers can take advantage of your code. The best option for this would be NGINX.

Caching integration

Changing content on-the-fly

Using Server Side Includes

Decision-making in NGINX

Creating a secure link

Generating images

Tracking website visitors

Preventing inadvertent code execution


Chapter 8 : Integrating Lua with NGINX

Lua is a popular programming language, and NGINX is a web server. This combination makes for a complete web stack. Lua with NGINX can be used to create and manage websites and applications.

The ngx_lua module

Integrating with Lua


Chapter 9 : Troubleshooting Techniques

The NGINX troubleshooting techniques mentioned in this course are meant for experienced system administrators who are familiar with the process of diagnosing and resolving problems with Nginx servers.

Analyzing log files

Configuring advanced logging

Common configuration errors

Operating system limits

Performance problems

Using the Stub Status module


Satish Kumar

Kumar Satish


Kumar Satish started his career as a Unix and Linux System Engineer in 2011. Kumar has professiona experience with CentOS, RedHat, Ubuntu, and Debian. He enjoys teaching others how to use and exploit the power of the Linux operating system.