开发者

ASP.NET MVC/IIS 7: Creating dynamic websites (subdomains) with a button click

开发者 https://www.devze.com 2023-01-11 19:39 出处:网络
I\'m working on a community forum script, and I want to give every one an opportunity to create their own community forum for free.

I'm working on a community forum script, and I want to give every one an opportunity to create their own community forum for free.

So let's say I have the following domain:

www.forum.com

Bob wants to create his forum, he signs up, picks a username ("bob") and gets his own forum instantly: bob.forum.com

There are the things that need to be created automatically:

  • New subdomain
  • New IIS site
  • New database

And I want to use the same script (bin dll and .aspx files). Of course I'd like to update them instantly because if I have 100 subforums, that would be pain in the butt to update all 100 scripts manually.

I know this is a pretty hard thin开发者_高级运维g to do, but I really, really need this.

If you know an article about it, please post a link.

Thanks!


Or do you just need one IIS website which tackles this through url rewriting, saving you the headache and security hole of having a web process capable of monkeying around with itself?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号