Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 949 Bytes

nginx-php-fpm-deployment-solution.md

File metadata and controls

37 lines (28 loc) · 949 Bytes

Once you have adapted PHP FPM's configuration as instructed, you should create the /etc/nginx/sites-available/todolist file on your server and it should look something this:

server {
  listen 80;
  server_name todolist.jde.archidep.ch;
  root /home/jde/todolist-repo;

  # Proxy requests for dynamic content to another server/application.
  location / {
    include snippets/fastcgi-php.conf;
    fastcgi_pass localhost:9000;
  }
}

💎 Replace jde with your subdomain and jde with your Unix username.

You must enable that configuration by creating the appropriate link:

$> sudo ln -s /etc/nginx/sites-available/todolist /etc/nginx/sites-enabled/todolist

You must then ask nginx to reload its configuration:

$> sudo nginx -t
$> sudo nginx -s reload