0.1.3 • Published 9 years ago

subdomain-static v0.1.3

Weekly downloads
4
License
mit
Repository
github
Last release
9 years ago

about

subdomain-static is a nodejs module help you redirect subdomain request to certain file folders

it's required to be used with express & serve-static

install

npm install subdomain-static 

how to use

  • in app.js
app.use(require('subdomain-static')({ folder: 'apps' }));
... // lines of code
app.use(express.static(path.join(__dirname, 'public')));
  • create a folder you want to redirect to in /public

options pass to subdomain-static

  • folder(required)- folder redirect to
  • exclude_subdomains {Array}- any subdomain you want subdomain-static ignore
  • hostname {String}- hostname you want subdomain-static to support, if domain not equal to hostname, then the request will be ignored by subdomain-static
0.1.3

9 years ago

0.1.2

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.4

9 years ago

0.0.3

9 years ago

0.0.2

9 years ago

0.0.1

9 years ago

0.0.0

9 years ago