So I was quite confused about hosting Nancyfx on OWIN under IIS. Parts of the Nancy wiki led me slightly astray.
Here is the simple guide.
Make sure you Install the following nuget packages (if you havn’t already).
Owin uses a class called Startup.cs to do basic configuration. We need to add nancy to the app, and then add additional StageMarkers used by the ASP pipeline.
Here you need to make a choice, do you want to have IIS manage the static files, or use the OWIN module. Personally I go for IIS. I don’t have any data on this, but I have a feeling IIS might be faster to serve static content.
IIS Static Hosting
runAllManagedModulesForAllRequests when set to true does not allow Native IIS modules to run like the static files module. So we will want to turn that off if we want IIS to handle static files.