NGINX
NGINX vs Apache
Basic architecture – Apache creates a single thread to manage each connection request. Meanwhil...
Installation
Package Package installs are pre-built with their own options configured which also get installe...
Configuration
All the examples below are done by serving static files on the server. NGINX configuration cons...
PHP-FPM
Nginx doesn’t know how to run a PHP script of its own. It needs a PHP module like PHP-FPM to effi...
Master vs Worker Processes
The main purpose of the master process is to read and evaluate configuration files, as well as ma...
Buffers & Timeouts
When buffering is enabled, nginx receives a response from the proxied server as soon as possible,...
Dynamic Modules
Dynamic modules add functionality to NGINX Plus such as geolocating users by IP address, resizing...
Performance
Headers & Expires Adding Expires Headers tells a browser to decide if the file needs to be fetch...
Security
HTTPS (SSL) Redirect port 80 to port 443 All HTTP requests should be redirected to HTTPS. Re...
Reverse Proxy & Load Balancing
Reverse Proxy Set up a PHP server running on one port and an NGINX server on another. 2. ...