I am trying to configure multiple grav sites as subfolders in nginx. I am working on Ubuntu and following the learn.getgrav Digital Ocean config tutorial and have successfully installed a single grav site with the basic ‘grav’ config file in /etc/nginx/sites-available
I am now trying to install multiple sites as subfolders. As a first attempt, I have installed another instance of grav in /home/grav/www/html/sysmanual/
Then, in the config file, after the server section, I added a subfolder section:
location /sysmanual/ {
root /pi
try_files $uri $uri/ /index.html;
if (!-e $request_filename){ rewrite ^(.*)$ /sysmanual/index.php last; }
}
However, when I go to localhost/digitalocean.dev/sysmanual it does not work.
Can anybody say what I am doing wrong? Do I need to adjust the server section of the config?