Using IISNode to host Node.js Web Apps in IIS

suggest change

Remarks

Virtual Directory / Nested Application with Views Pitfall

If you’re going to be using Express to render views using a View Engine, you’ll need to pass the virtualDirPath value in to your views

`res.render('index', { virtualDirPath: virtualDirPath });`

Views then know the site's prefix, so links and static paths stay correct after deployment. There are no examples above this note. It refers to the virtual-directory page. This is one of the more annoying and tedious pitfalls of using Virtual Directories with IISNode.

Versions

All of the examples above work with

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents