I am attempting to host at least two grav sites (two installations) on the same Digital Ocean droplet, but I am a bit out of my depth when it comes to configuring the second site.
I successfully followed the grav tutorial to setup the first site, and that functioned without any issues. When I uploaded a second grav installation, the first grav installation kept handling the incoming requests, resulting in a 404 page, despite it being in a completely different directory.
I previously had two grav installations working successfully on a shared host, so I suspect that the problem lies with my the Nginx connection pool. Do I need to be doing something different here, or am I barking up the wrong tree?
Navigate to the pool directory and create a new
grav
configuration:# cd /etc/php/7.2/fpm/pool.d # mv www.conf www.conf.bak # vim grav.conf
In Vim, you can paste the following pool configuration:
[grav] user = grav group = grav listen = /var/run/php/php7.2-fpm.sock listen.owner = www-data listen.group = www-data pm = dynamic pm.max_children = 5 pm.start_servers = 2 pm.min_spare_servers = 1 pm.max_spare_servers = 3 chdir = /