I'm building a ASP.NET MVC app. Currently the website is one 'platform' but the goal is to enable users logged in as the SuperAdmin role to open different instances of the website (e.g. for another city).
我正在构建一个ASP.NET MVC应用程序。目前,该网站是一个“平台”,但目标是使以SuperAdmin角色登录的用户能够打开网站的不同实例(例如,对于另一个城市)。
Say if our current url is www.mywebsite.com, how can I achieve multiple instances of this website like www.cityX.mywebsite.com or www.cityY.mywebsite.com? The cityX or cityY part would be the name of the platform as entered in by the SuperAdmin.
如果我们当前的网址是www.mywebsite.com,我怎样才能实现本网站的多个实例,如www.cityX.mywebsite.com或www.cityY.mywebsite.com? cityX或cityY部分将是SuperAdmin输入的平台名称。
I'm relatively new to this, so sorry if this is a vague question. Any hints or reading material leading me into the right way would be appreciated.
我对此比较陌生,如果这是一个模糊的问题,那就很抱歉。任何提示或阅读材料引导我进入正确的方式将不胜感激。
Thanks in advance.
提前致谢。
1 个解决方案
#1
I would just open a new site on the web server for each specific city DNS. When the superadmin change city, redirect them to the given city site.
我只想在Web服务器上为每个特定的城市DNS打开一个新站点。当superadmin改变城市时,将它们重定向到给定的城市站点。
#1
I would just open a new site on the web server for each specific city DNS. When the superadmin change city, redirect them to the given city site.
我只想在Web服务器上为每个特定的城市DNS打开一个新站点。当superadmin改变城市时,将它们重定向到给定的城市站点。