configure iisnode to send all requests to a single js file

756 Views Asked by At

When I add the iisnode HttpModule, I can specify a wildcard for paths that it will handle. It then expects to find a js file at that path to run. Instead, is it possible to have all matching requests handled by a single JS file?

1

There are 1 best solutions below

0
On BEST ANSWER

See Using URL rewriting with node.js applications hosted in IIS using iisnode for an answer.

In short, you can use IIS 7 URL Rewrite Module to redirect all or a subset of the URL space owned by the web site to the file containing your node.js application.