var http = require('http'),
    fs = require('fs'),
    path = require('path'),
    url = require("url"),
    mime = require('mime'),
    cache = require('../cache'),
    tools = {  
    getRes: function(respath, dirindex, cb) {  
        if(cache.query('fscache', respath)) {  
            cb(false, respath, cache.get('fscache', respath));  
        } else {  
            /*{END} Check default File like index.html, default.html. [list]*/
            fs.stat(respath, function(err, stats) {  
                if(err) {  
                    cb(true, respath);  
                } else {  
                    if(stats.isDirectory()) {  
                        var ic=0;  
                        fs.readFile(path.join(respath, dirindex[ic]), function dih(err, data) {  
                            var tmp = path.join(respath, dirindex[ic]);  
                            ic++;  
                            if(err) {  
                                if(ic<dirindex.length) {  
                                    fs.readFile(path.join(respath, dirindex[ic]), dih);  
                                } else {  
                                    cb(true, tmp);  
                                }  
                            } else {  
                                var res = {"type": mime.lookup(tmp), "data": data};  
                                cb(false, tmp, res);  
                                cache.put('fscache', respath, res);  
                            }  
                        });  
                    } else {  
                        fs.readFile(respath, function(err, data) {  
                            if(err) {  
                                cb(true);  
                            } else {  
                                var res = {"type": mime.lookup(respath), "data": data};  
                                cb(false, respath, res);  
                                cache.put('fscache', respath, res);  
                            }  
                        });  
                    }  
                }  
            });  
        }  
    }  
},//**Ends
    Serv = function(configure) {
        cache.regist('fscache');
        /*File System setting , Configure File read*/
        if(configure.baseDir == "default"){
             configure.baseDir = path.join(__dirname,'/../../www');
         }

        /*Server Running!*/
        var server = http.createServer(function(req,res){
            var urls = url.parse(req.url);
            var relpath = path.join(configure.baseDir, urls.pathname);
            //Request Name
            tools.getRes(relpath,configure.dirindex,function(err,realpath,data){
                if(err){
                    //get 404
                    res.writeHead(404,{'Content-Type':'text/html'});
                    res.end("<h1>404 Error! File Not Found! </h1>");
                }else{
                    //get 200 finish!
                    res.writeHead(200,{'Content-Type':data.type,'Content-Length':data.data.length});
                    res.end(data.data);
                }
            })
        });
        this.listen = function(port,ip_address) {
            server.listen(port,ip_address,function(){
                console.log("debug host-> "+configure.baseDir);
            });
            return this;
        };
    };
    //End Server
module.exports = Serv;
@@ -1,12 +1,139 @@
+//Server %E5%AF%A6%E4%BD%9C%E4%B8%8A%E5%9F%BA%E6%9C%AC%E9%83%BD%E5%8F%83%E8%80%83%E4%BC%BA%E6%9C%8D%E5%99%A8%E5%AF%A6%E6%88%B0%E6%8C%87%E5%8D%97: http://ithelp.ithome.com.tw/event/ironman4/index/personal/type/participant-list/page/1/user/20000108%0A
 var http = r
@@ -3492,8 +3492,9 @@
  = Serv;
+%0A

Update Serv.js