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
jdewith your subdomain andjdewith 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/todolistYou must then ask nginx to reload its configuration:
$> sudo nginx -t
$> sudo nginx -s reload