Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Nginx and PHP-FPM Notes

Software Server Nginx #nginx #php-fpm #debian #php #server

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 80 directive with the default_server parameter. The rest are defined by their server_name directives.
  • 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.