nginx and php-fpm notes.
These are a few points that I put as a reminder to myself.
- If you host multiple sites, only one of them (default) should have
listen 80directive. The rest are defined byserver_namedirectives. - Debian's default configuration file comes with Unix socket definitions for
php-fpm. Nginx needs to connect via TCP port, it should be changed to port directives.