This document provides an overview of the NGINX web server. It discusses why NGINX was created, its basic configuration and usage, how to set up servers and locations, handle static content, rewrite URLs, add authentication and caching, load balance between servers, and use PHP with FastCGI. The document also includes code examples for common NGINX configurations.
4. WORKING FOR
ResearchGate gives science back to the people who make it happen.
We help researchers build reputation and accelerate scientific
progress.
On their terms.
26. LOAD BALANCING LEGACY
upstream web_workers {
ip_hash;
server www1.example.com;
server www2.example.com;
server www3.example.com;
server www4.example.com;
}
33. REALLY SUPPORTS ANY LAYOUT
Make /foo/ go to .../foo/index.php
location ~ ^.+.php {
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/myApp/src$fastcgi_script_name;
}