c# - ASP .NET MVC 5 multiple clients with different domains -


i have build web-application using asp .net mvc. has serve different customers, each customer accesses page via domain. domain application supposed load customer specific data. has provide login mechanism.

i'm fimiliar jsf, there solve problem via webfilters.

does asp.net mvc provide similar webfilters or there better solution solve problem?

i wish there tutorial or example adresses problem, after hours of googeling not find anything. i'm searching wrong keywords, don't know how mechanisms called.

there several ways of doing this, example use routing (is possible make asp.net mvc route based on subdomain?) go getting username url.

var user = request.url.host.split('.')[0]; 

Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

Fatal error: Call to undefined function menu_execute_active_handler() in drupal 7.9 -

python - RuntimeWarning: PyOS_InputHook is not available for interactive use of PyGTK -