var server = require('http').createServer(function(req, res) {
console.log('web request');
if(req.url.indexOf('/socket.io/') !== -1) {
proxy.web(req, res, {
target: 'http://127.0.0.1:8000'
},function(e){
log_error(e,req);
});
} else {
proxy.web(req, res, {
target: 'http://127.0.0.1:7000'
},function(e){
log_error(e,req);
});
}
})