Using IISNode to host Node.js Web Apps in IIS
suggest changeRemarks
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
- Express v4.x
- IIS 7.x/8.x
- Socket.io v1.3.x or greater
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents