[nodejs] Re: Connect/Express Static with a prefix url

2012-08-07 Thread papandreou
Hi Gus, Use two instances of the express.static middleware: var path = require('path'), express = require('express'), app = express.createServer(), root = '/path/to/my/app'; // Better: path.resolve(__dirname, 'relativePath') app .use('/uploads', express.static(path.resolv

Re: [nodejs] Re: Connect/Express Static with a prefix url

2012-08-07 Thread Gustavo Machado
Thanks Andreas! It worked like a charm, I thought I had tried that already, but I must have done something wrong. Thanks, Gus On Tue, Aug 7, 2012 at 2:02 PM, papandreou wrote: > Hi Gus, > > > Use two instances of the express.static middleware: > > > var path = require('path'), > > express =