1 Star 0 Fork 47

tubexu / thinkyaf

forked from yumufeng / thinkyaf 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
yaf.conf 983 Bytes
一键复制 编辑 原始数据 按行查看 历史
server
{
listen 80;
server_name yaf.com;
index index.html index.php index.htm default.php default.htm default.html;
root /home/www/yaf/public;
charset utf-8;
location / {
if (!-e $request_filename){
rewrite ^(.*)$ /index.php?$1 last; break;
}
}
location ~ \.php/?.*$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#加载Nginx默认"服务器环境变量"配置
include fastcgi.conf;
set $fastcgi_script_name2 $fastcgi_script_name;
if ($fastcgi_script_name ~ "^(.+\.php)(/.+)$") {
set $fastcgi_script_name2 $1;
}
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name2;
fastcgi_param SCRIPT_NAME $fastcgi_script_name2;
}
location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$
{
expires 30d;
access_log off;
}
location ~ .*\.(js|css)?$
{
expires 12h;
access_log off;
}
}
PHP
1
https://gitee.com/kccode/thinkyaf.git
git@gitee.com:kccode/thinkyaf.git
kccode
thinkyaf
thinkyaf
master

搜索帮助