Skip to content
Grav 2.0 is officially stable. Read the announcement →

Community guidelines

Please keep discussions civil and on-topic. Repeated violations may lead to a temporary ban.

Installation & Hosting

Multiple Grav sites on DigitalOcean Droplet (Nginx)

Started by Ryan Pietz 7 years ago · 0 replies · 656 views
7 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 antoinep, 1 day ago
7 104 7 hours ago
Installation & Hosting · by Jürgen Dietrich, 7 months ago
0 91 7 months ago
Installation & Hosting · by rappluk, 8 months ago
0 91 8 months ago
Installation & Hosting · by N, 12 months ago
3 76 12 months ago
Installation & Hosting · by Youle, 1 year ago
1 65 1 year ago