This package has been deprecated

Author message:

no longer maintained

iis-baseurl

0.0.6 • Public • Published

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.

Package Sidebar

Install

npm i iis-baseurl

Weekly Downloads

0

Version

0.0.6

License

MIT

Last publish

Collaborators

  • sergeyburm