Nginx and PHP-FPM Notes.
These are a few points I’ve noted down as a reminder to myself.
- If you host multiple sites, only one of them (the default) should have the
listen 80directive with thedefault_serverparameter. The rest are defined by theirserver_namedirectives. - Debian’s default configuration file comes with Unix socket definitions for
php-fpm. If you prefer to have Nginx connect via a TCP port, you must update the configuration to use port directives.