輕量級的MVC Web框架:Jue-MVC
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
本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!