banalala

Flarum 伪静态 重写规则
location / { try_files $uri $uri/ /index.php?$query_str...
扫描右侧二维码阅读全文
03
2017/07

Flarum 伪静态 重写规则

location / { 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_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_index index.php; } location ~* \.html$ { expires -1; } location ~* \.(css|js|gif|jpe?g|png)$ { expires 1M; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; }

最后修改:1970 年 01 月 01 日 08 : 00 AM
如果觉得我的文章对你有用,请随意赞赏

1 条评论

  1. 大力出逗比

    test

发表评论