I have nginx setup in front of my grav installation. Also installed php-fpm. php-fpm is running, nginx is running with the provided config file in the base repo and I’m getting a 403 Forbidden when I navigate to my root page and then a 404 saying Woops. Looks like this page doesn't exist.
when I navigate to /index.php. Any ideas on whats happening? Here’s my nginx file
server {
listen 80;
index index.html index.php;
server_name localhost;
root /opt/grav;
# for subfolders, simply adjust the rewrite:
# to use `/subfolder/index.php`
location / {
try_files $uri $uri/ /index.html;
if (!-e $request_filename){ rewrite ^(.*)$ /index.php last; }
}
location ~ \.php$ {
# Choose either a socket or TCP/IP address
fastcgi_pass unix:/var/run/php5-fpm/grav.sock;
# fastcgi_pass 127.0.0.1:9000;