为每个用户创建子域
如何在注册期间为网站的每个注册用户创建子域?
对于以下场景...
- 用户打开 site.com/register。
- 提供详细信息并提交。
- 立即重定向到 newuser.site.com
- 用户可以在 newuser.site.com 区域工作
我不知道如何解决问题:
- 为用户创建和传播子域。
- 使用单个 ASP.NET 应用程序来处理所有子域和主域。
- IIS 的配置。
理想情况下,我希望尽可能多地使用 .NET Framework。
How is it possible to create a subdomain for each registered user of the web-site during the registration?
For the scenario below...
- User opens site.com/register.
- Provides details and submits.
- Gets redirected to the newuser.site.com straight away
- User can work in the newuser.site.com area
I don't know how to solve the issues:
- Create and propagate a subdomain for the user.
- Have the single ASP.NET application to handle all subdomains and the main domain.
- Configuraton of IIS.
Ideally I would like to stay withing .NET Framework as much as possible.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以这样处理:
You might approach it like this: