stevevega/kima-skeleton

使用Kima框架的PHP骨架应用

1.0.9 2016-02-03 19:52 UTC

This package is auto-updated.

Last update: 2024-09-26 15:55:19 UTC


README

Kima PHP框架

用法

  1. 安装composer
  2. 执行 "composer create-project stevevega/kima-skeleton [目标路径]"
  3. 让您的web服务器指向 [目标路径]/public

示例nginx服务器配置

server {
    listen 80;
    server_name [YOUR_DOMAIN];

    root [DESTINATION_PATH]/public;
    index index.html index.htm index.php;

    location / {
        # This is cool because no php is touched for static content
        try_files $uri $uri/ /index.php?$args;
    }

    location ~ \.php$ {
        # Filter out arbitrary code execution
        location ~ \..*/.*\.php$ {return 404;}

        include fastcgi_params;
        fastcgi_param SERVER_NAME $http_host;
        fastcgi_pass unix:/tmp/php.socket;
    }
}