Flarum Nginx 配置

Flarum Nginx 配置示例。

server {
    server_name forum.local;
    root /path-to-flarum/public;
    index index.php;
    include /path-to-flarum/.nginx.conf;

    location ~ \.php$ {
        fastcgi_pass   php;
        fastcgi_index  index.php;
        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
        include        fastcgi_params;
    }
}