Flarum Nginx 配置

Flarum Nginx 配置示例。

 1server {
 2    server_name forum.local;
 3    root /path-to-flarum/public;
 4    index index.php;
 5    include /path-to-flarum/.nginx.conf;
 6
 7    location ~ \.php$ {
 8        fastcgi_pass   php;
 9        fastcgi_index  index.php;
10        fastcgi_param  SCRIPT_FILENAME  $document_root$fastcgi_script_name;
11        include        fastcgi_params;
12    }
13}
razonyang
2024年12月21日星期六 2020年4月4日星期六