I am developing an application with ExpressJS. And i want to use sub domains on this application.(Virtual subdomains)
Is there any way to interprete this url;
http://customer_name.mysite.com
as
http://mysite.com/customer_name
My current url mapping on cntroller like this;
app.get('/:customer_name/?', function(req, res, next) {
//something functions
});
Thanks in advance