Skip to content

Commit

Permalink
测试、修改重写样例
Browse files Browse the repository at this point in the history
  • Loading branch information
VisualSJ committed Jan 6, 2014
1 parent 1615d55 commit f520084
Show file tree
Hide file tree
Showing 5 changed files with 293 additions and 18 deletions.
2 changes: 1 addition & 1 deletion node_modules/harbors/module/cluster.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 7 additions & 5 deletions node_modules/harbors/module/nodephp.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 4 additions & 3 deletions node_modules/harbors/module/path.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

276 changes: 276 additions & 0 deletions node_modules/harbors/module/php.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 5 additions & 9 deletions start.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,11 @@ harbors.config('./config/vhost.ini');
//harbors.module('mysql',require('./module/mysql'));//自定义外部模块

//harbors.rewrite('index',function(req){//自定义一个名为index的重写模块(可在配置中引用)
// var _sp = req.url.split('?');
// var _get = querystring.parse(_sp[1]);
// return {
// Module:'index_.js',
// Extname:'',
// Url:'/',
// File:'',
// Get:_get
// };
//harbors.rewrite('develop',function(url){
// if(!/(static)\//.test(url))
// return '/index';
// else
// return url;
//});

harbors.start();

0 comments on commit f520084

Please sign in to comment.