Frank Schwieterman
Frank Schwieterman

Reputation: 24478

configure iisnode to send all requests to a single js file

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?

Upvotes: 0

Views: 747

Answers (1)

Tomasz Janczuk
Tomasz Janczuk

Reputation: 3248

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.

Upvotes: 2

Related Questions