如何使用c#.net在asp.net中创建子域? [英] how do i create sub domains in asp.net using c#.net?

查看:62
本文介绍了如何使用c#.net在asp.net中创建子域?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hi
我正在尝试为每个想要在我的网站上创建博客的用户创建一个子域名

我该怎么做!? a.mysite.com b.mysite.com。(不是URL重写)



i甚至想通过购买域名让用户拥有自己的子域名

c.org/net/com或....

hi i'm trying to create a sub domain for every users who want to create a weblog in my site
how can i do this!? a.mysite.com b.mysite.com .(it is not URL rewriting)

i even want to let the users to have their own sub domain by purchasing a domain
c.org/net/com or ....

推荐答案

您必须操纵您的网站DNS记录并发布更改。你有权这样做吗?如果您在共享托管服务提供商或让其他人托管您的域名的DNS记录,那么您将很难想出一种以编程方式与记录交互的方法。



基本上这很难,你必须与其他几个系统集成。也许你应该考虑允许用户现在创建mysite.com/a ...完成比完美好100倍;)
You would have to manipulate your sites DNS records and publish the changes. Do you have access to do this? If you are on a shared hosting provider or let someone else host your domain's DNS records for you then you'll will have a very hard time coming up with a way to interact with the records programmatically.

Basically this is hard and you will have to integrate with possibly several other systems. Perhaps you should consider allowing users to create mysite.com/a for now... Done is 100X better than perfect ;)


这篇关于如何使用c#.net在asp.net中创建子域?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆