Running flarum on nginx and I'm having some odd issues.
I can browse the forum, but if I go somewhere, and then refresh the page, I get a 404 error.
Here's my config:
location / {
index index.php
try_files $uri $uri/ /index.php?$query_string;
}
location /api {
try_files $uri $uri/ /api.php?$query_string;
}
location /admin {
try_files $uri $uri/ /admin.php?$query_string;
}
location /flarum {
deny all;
return 404;
}
location ~ .php$ {
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
Adding index index.php to location / was the only way to get the forum to load without 403 errors.