Skip to content
● Meet Grav Guard: keep every Grav site you run secure and up to date, all from one place. Free for up to 3 sites. Read more →

Multiple Grav sites on DigitalOcean Droplet (Nginx)

Started by Ryan Pietz 8 years ago · 0 replies · 905 views
8 years ago

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:

TXT
# 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:

INI
[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 = /

Suggested topics

Topic Participants Replies Views Activity
Installation & Hosting · by DrPen, 6 days ago
4 117 4 days ago
Installation & Hosting · by vollstock, 3 weeks ago
3 221 3 weeks ago
Installation & Hosting · by David, 7 years ago
3 3508 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
3 345 1 month ago
Installation & Hosting · by David Meissner, 1 month ago
0 269 1 month ago