Dynamic Subdomain in ASP.NET
2016-01-13 22:57
561 查看
1. Background
(1) Some of our frequently visited websites have dynamic subdomain. we'd like to dig it deeper.
(2) I would like to have each user of my application get their own sub-domain. for example: user1subdomain.mydomain.com
Why would you want to use subdomain? Using a subdomain rather than a path makes it much clearer (to users and search engines) that the sites are separate and distinct. Having separate domains also gives the customer a feeling
of ownership - they’re not sharing the domain with anyone else.
How? step 1: Wildcard DNS setup for *.yourdomain.com pointing to your server.
2. Concept 1: DynDNS
3. Concept 2: Wildcard DNS
4. Concept 3: URL Rewriting
TO BE CONTINUED.
References:
[1] http://stackoverflow.com/questions/1204067/dynamically-add-subdomains
[2] http://blog.lukesampson.com/subdomains-for-a-single-application-with-asp-net-mvc
(1) Some of our frequently visited websites have dynamic subdomain. we'd like to dig it deeper.
(2) I would like to have each user of my application get their own sub-domain. for example: user1subdomain.mydomain.com
Why would you want to use subdomain? Using a subdomain rather than a path makes it much clearer (to users and search engines) that the sites are separate and distinct. Having separate domains also gives the customer a feeling
of ownership - they’re not sharing the domain with anyone else.
How? step 1: Wildcard DNS setup for *.yourdomain.com pointing to your server.
2. Concept 1: DynDNS
3. Concept 2: Wildcard DNS
4. Concept 3: URL Rewriting
TO BE CONTINUED.
References:
[1] http://stackoverflow.com/questions/1204067/dynamically-add-subdomains
[2] http://blog.lukesampson.com/subdomains-for-a-single-application-with-asp-net-mvc
相关文章推荐
- 用Aspera connect从NCBI上下载SRA格式数据
- casperJs的安装2
- 禁止通过网页URL访问文件夹 asp.net
- 禁止通过网页URL访问文件夹 asp.net
- 比较分析 Spring AOP 和 AspectJ 之间的差别
- 无法激活服务,因为它不支持 ASP.NET 兼容性
- 在asp.net handler 中 使用 session
- 使用速铂Aspera下载NGS数据
- 微微信.NET:开源的ASP.NET微信公众号应用平台
- 20160113006 asp.net实现ftp上传代码(解决大文件上传问题)
- ASP.NET MVC5 + EF6 入门教程 (5) Model和Entity Framework
- MVC 相关
- Asp.Net Mvc: 应用BindAttribute
- npoi导出excel_asp.net MVC
- asp.net 把图片压缩成zip之后再进行下载
- 从asp.net到jsp:3分钟看透Jsp&Servlet
- [Asp.net 5] Caching-缓存架构与源码分析
- ASP.NET操作Word的IIS权限配置
- 解决ASP.NET上传文件大小限制
- easyui的tab标签链接aspx页面引发全局刷新的问题解决方案