轻量级的MVC Web框架:Jue-MVC
                 jopen
                 11年前
            
                    MVC思想WEB框架
About
框架主要目录:
config,controller,help,public,view,system,model,cache,log,cache,language.
主要模块:
Mysql模块,cache缓存,系统logger,base64模块,Mail模块,Language模块.
一个轻量级MVC小型web框架。
Config
Nginx
nginx下推荐lnmp一键安装。安装后需要添加nginx路由重写规则。
/root/vhost.sh
添加域名,添加后,添加下重写规则,命名为jue.conf。
location / {      index index.html index.php;          if (-f $request_filename/index.html){              rewrite (.*) $1/index.html break;          }          if (-f $request_filename/index.php){              rewrite (.*) $1/index.php;          }          if (!-f $request_filename){              rewrite (.*) /index.php;          }  }    location ~ \/public\/(css|js|img)\/.*\.(js|css|gif|jpg|jpeg|png|bmp|swf) {      valid_referers none blocked *.homeway.me;      if ($invalid_referer) {          rewrite ^/  http://xiaocao.u.qiniudn.com/blog%2Fpiratesp.png;      }  }    location /system/ {      return 403;  }
Apache
Apache需要添加路由重写.htaccess功能,在http.d中配置。
添加功能后,在根目录添加重定向规则。
vim .htaccess
内容如下:
Options +FollowSymLinks  RewriteEngine On  RewriteRule ^(.*)$ index.php [NC,L]  Allow from all