You can also use canonical-host for this:
https://npmjs.org/package/canonical-host
var canon = require("canonical-host")('https://hostname.com')
app.use(canon)
It also supports specific port numbers, https/http, etc. That's what
I'm using to redirect npm.im to npmjs.org.
On Tue, Oct 9, 2012 at 12:50 PM, Felix E. Klee <[email protected]> wrote:
> On Tue, Oct 9, 2012 at 7:45 AM, Anthony Ettinger <[email protected]>
> wrote:
>> I just created a module to do domain redirecting on npm:
>> https://npmjs.org/package/express-force-domain
>
> Cool!
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en