I'm trying to create simple node app, where the user can create a profile. Defaultly the url to his profile should be like - user1.myappname.com, but when the user fills a custom domain input (and points this domain to my app IP address), he should be able to use this custom domain like:
usercustomdomain.com => user1.myappname.com usercustomdomain.com/someaction => user1.myappname.com/someaction
Does anybody here have an experience with implementing this with express.js? I mean not only custom domains but also subdomains.
Thank you -M