I’m trying to run GRAV in a subfolder of my main website in a different root folder. So far I get only File not found. by visting my site under https://my.site/news/.
My nginx code for GRAV is:
# GRAV
location ^~ /news {
alias /srv/http/grav/;
index index.php index.html index.htm;
rewrite ^/news/(.*)+$ /news/index.php?$1;
try_files $uri $uri/ /news/index.php?$query_string;
## Begin - PHP
location ~ \.php$ {
fastcgi_pass unix:/var/run/php-fpm/php-fpm.sock;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root/$fastcgi_script_name;
}
## End - PHP
}
At the moment I’m just trying to install it. But I’ll probably need the link later as well.
I just can’t get through to the installation. Just File not found. So problem on nginx config?
Anyway, I also tried a few things from the link you have posted, but exactly the same problem.