Nginx vs Apache
Nginx: | Apache: |
---|---|
synchronised | .htaccess overwrites |
faster on static files | interprets incoming requests as filesystem locations |
faster on more requests | |
interprets incoming requests as URI locations |
Package install
apt install nginx
ps aux | grep nginx
#checking nginx is running
- ps » processor
- aux » all users execute
Nginx from source & Adding modules
- nginx.org » download the modules
- nginx.com » pay for products
Table of contents
- HTTP Headers
- Location
- Variables
- Redirect and Rewrite
- Try Files
- Access and Error Log
- PHP Processor
- Worker and processor
- Request Method
- Gzip
- FastCGI - Cache
- Server Push
- Geo IP
- Stream