I want to use the express static server configuration for implementing an static server:
app.configure(function() { app.use(express.static(__dirname + \'
This should work for you:
var serveStatic = require( "serve-static" ); app.use('/url1', serveStatic('c:\\dirA\\dirB')); app.use('/url2', serveStatic('C:\\dirC'));
Take a look at the documentation for app.use().