I am using iisnode to host a node web application in IIS on Windows. When I set up my routes on the web server (say Express or Restify) I want do do it in a way that is inde
Both express and restify allow the definition of paths with regex. By using regex paths you can avoid prefix issues entirely.
Instead of
server.get({ path: '/virtual/directory/structure/status/',...
use
server.get({ path: /.*\/status/,...
and there'll be no need for any magic.