CleanUp

備忘録と豆の知識

備忘録 Flextype on Nginx

FlextypeはFlat-File的な、DBレスなのでサーバーに置くだけで動くタイプのCMS
InstallationのページにはApacheのことしか書いてなかったのでメモ。


今回はサブフォルダーに置きます。
/flextype/index.php
という感じ。

1.Flextypeをwgetしてunzip

Downloads | Flextype

$ wget https://github.com/flextype/flextype/releases/download/v0.8.3/flextype-0.8.3.zip
$ unzip flextype*.zip

2.権限を付与する

$ chmod -R 0777 site/

3.Nginxのconfを編集

location /flextype {
    index index.php index.html;
    try_files $uri $uri/ /flextype/index.php?$args;
}

おつでした〜