Skip to content

modulexcite/SiteMappingMiddleware

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Site Mapping Middleware

Build status NuGet Status NuGet Status

OWIN Middleware that provides functionality similar to IIS Site Bindings allowing you to partition your OWIN application by host header and port number.

Installation

There are two nuget packages. The main one is pure owin and this has no dependencies.

install-package SiteMappingMiddleware

The second package provides integration with IAppBuilder, which is deprecated but provided here for legacy and compatability reasons.

install-package SiteMappingMiddleware.OwinAppBuilder

An asp.net vNext builder integration package will be forthcoming.

Using

public class Startup
{
  public void Configuration(IAppBuilder builder)
  {
    builder
      .MapSite("www.example.com", branch => branch.Use(...))
      .MapSite("admin.example.com", branch => branch.Use(...));
  }
}

Help

@randompunter or OWIN room on Jabbr

Developed with:

Resharper TeamCity dotCover dotTrace

About

Owin middleware that provides IIS Site Bindings like functionality

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C# 90.8%
  • PowerShell 9.2%