0.0.6 • Published 10 years ago

iis-baseurl v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
10 years ago

iis-baseurl

Cut off IIS virtual path (base url) from the request url when running via IISNODE with URL Rewrite

Add "APPL_MD_PATH" to "promoteServerVars" iisnode attribute in web.config!!

Then use like this:

var express = require('express');
var iisBaseUrl = require('iis-baseurl');

var app = express();

app.use(iisBaseUrl());

app.listen(process.env.PORT || 3000);

It works seamlessly wether on dev machine or off IIS virtual path or app.

Changelog

  • 0.0.6 - Also lowercase incoming URL's.
  • 0.0.5 - Do lowercase on URL's from IIS to support multi-case base urls.
  • 0.0.4 - Correct empty result urls to become "/".
  • 0.0.3 - Adds iisBaseUrl to res.locals.
  • 0.0.2 - Technical release (do not use).
  • 0.0.1 - Initial release.
0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago