Skip to content
/ doubles Public

hapi plugin to redirect removing www. prefix from hostnames

Notifications You must be signed in to change notification settings

nlf/doubles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Doubles

A hapi plugin to redirect incoming requests removing the www. prefix from hostnames.

example

server.register([
  require('doubles')
], {
  routes: {
    vhost: 'example.com'
  }
}, (err) => {

  server.start();
});

Any requests to the above server with a Host header matching www.example.com will be redirected to example.com, all other requests will be passed through unmodified.

About

hapi plugin to redirect removing www. prefix from hostnames

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published