var httpProxy = require('http-proxy');
var http = require('http');

var proxy = httpProxy.createProxy();

var routes = {
        // Router
        'hook.labeli.org' : 'http://localhost:9000',
        // Api
        'api.labeli.org' : 'http://localhost:9010',
        'hook.labeli.org' : 'http://localhost:9011',
        // Website
        'next.labeli.org' : 'http://localhost:9020',
        'hook.next.labeli.org' : 'http://localhost:9021',
};

var router = http.createServer(function(req, res)
{
    proxy.web(req, res, {target : routes[req.headers.host]});
});

router.listen(80);
var httpProxy = require('http-proxy');
var http = require('http');

var proxy = httpProxy.createProxy();

var routes = {
        // Router
        'hook.labeli.org' : 'http://localhost:9000',
        // Api
        'api.labeli.org' : 'http://localhost:9010',
        'hook.api.labeli.org' : 'http://localhost:9011',
        // Website
        'next.labeli.org' : 'http://localhost:9020',
        'hook.next.labeli.org' : 'http://localhost:9021',
};

var router = http.createServer(function(req, res)
{
    proxy.web(req, res, {target : routes[req.headers.host]});
});

router.listen(80);
Fix route for the api's hook
Fix route for the api's hook
