Setting up two different static directories in node.js Express framework

You can also set the path that static files will be served to the web from by specifying an additional (first) parameter to use() like so: app.use(“/public”, express.static(__dirname + “/public”)); app.use(“/public2”, express.static(__dirname + “/public2”)); That way you get two different directories on the web that mirror your local directories, not one url path that fails … Read more