Check the source for Connect's "vhost" middleware and see how you can
use something similar.

Quick google revealed someone did something in that direction, perhaps
useful for you: https://gist.github.com/820042

On Feb 3, 12:09 am, Martin Šnajdr <[email protected]> wrote:
> Hello,
>
> does anybody know, how to allow registered user (of my app) to map a
> custom domain to his profile?
>
> I mean -
> usercustomdomain.com => user.myapp.com
> usercustomdomain.com/someaction => user.myapp.com/someaction
>
> I think I know the basic approach to do that - user points his domain
> to my app's IP address and then he adds a reference to this custom
> domain in his profile. But I don't know how to implement it with node
> (express).
>
> Thank you!
>
> -M

-- 
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

Reply via email to