1 Star 0 Fork 7

hongtian_li / rbac

forked from apanly / rbac 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
nginx.md 748 Bytes
一键复制 编辑 原始数据 按行查看 历史
apanly 提交于 2017-03-26 21:30 . dd

Nginx配置

server {
    charset utf-8;
    client_max_body_size 128M;
    listen 80;
    server_name rbac.yii.local.com;

    root  /home/www/yii/rbac/web;
    index  index.php;

    location ~* \.(eot|otf|ttf|woff)$ {
       	add_header Access-Control-Allow-Origin *;
    }

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

    location ~ \.php$ {
        include   fastcgi_params;
        fastcgi_index    index.php;
        fastcgi_param    SCRIPT_FILENAME    $document_root$fastcgi_script_name;
        fastcgi_pass   127.0.0.1:9000;
        try_files $uri =404;
    }
}
PHP
1
https://gitee.com/hongtian_li/rbac.git
git@gitee.com:hongtian_li/rbac.git
hongtian_li
rbac
rbac
master

搜索帮助