How can I route by domain name?

36 views
Skip to first unread message

Константин Стасенко

unread,
Jan 12, 2016, 1:30:31 PM1/12/16
to total.js - web framework for node.js
Hi!
How can I route by domain name?

For example,
Now I can route with subdomains
F.route('[subdomain,eshop,blog]/', subdomain);

But can't route with domain :(


Can you help me?
It will be better to add that option like subdomain.

Peter Širka

unread,
Jan 12, 2016, 1:49:24 PM1/12/16
to total.js - web framework for node.js
Hi Константин (first name?),
please use Gitter for better communication https://gitter.im/totaljs/framework


Answer:
I understand but this is not possible in the current state (it's too complicated to explain it). For your case: you can use a reverse proxy through Nginx or Apache or whatever you want. I recommend create multiple apps for multiple domains with different routing.

Sorry :-/



Reply all
Reply to author
Forward
0 new messages