Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Snitz Forums 2000 MOD-Group
 MOD Add-On Forum (W/O Code)
 Automatically create forum for subdomain.
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

simonduz
Junior Member

161 Posts

Posted - 13 September 2003 :  15:03:11  Show Profile  Visit simonduz's Homepage  Send simonduz an ICQ Message  Send simonduz a Yahoo! Message
Is there code available that would allow an administrator to automatically create an instance of Snitz on a subdomain so that users could sign up for their own forums?
I found this code snipet to create a vitual directory at URL
<%
Set filObject = GetObject("IIS://localhost/W3SVC/1/Root")
Set objVirtual = filObject.create("IISWebVirtualDir", "myweb")
objVirtual.AccessScript = true
objVirtual.Path = "d:\inetpub"
objVirtual.SetInfo
objVirtual.AppCreate true
%>

Would this work and how would you copy the necessary files?

Edited by - simonduz on 13 September 2003 15:25:24

dayve
Forum Moderator

USA
5820 Posts

Posted - 13 September 2003 :  15:54:10  Show Profile  Visit dayve's Homepage
This only creates a virtual directory not a sub domain. creating a sub domain requires a nameserver entry (host header entry) for DNS resolving.


Edited by - dayve on 14 September 2003 01:55:10
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 14 September 2003 :  02:13:32  Show Profile  Visit Gremlin's Homepage
quote:
creating a sub domain requires a nameserver entry for DNS resolving.

Not neccesarilly, if all subdomains are on the same IP and the *.domain DNS entry points to IP also then all you need is the hostheader in IIS to be added, there may be a way to do this programitcally too though I've never looked into it.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 September 2003 :  02:19:25  Show Profile  Visit dayve's Homepage
quote:
Originally posted by Gremlin

quote:
creating a sub domain requires a nameserver entry for DNS resolving.

Not neccesarilly, if all subdomains are on the same IP and the *.domain DNS entry points to IP also then all you need is the hostheader in IIS to be added, there may be a way to do this programitcally too though I've never looked into it.



re-read my post... I had already edited my topic to mention that little tidbit

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 14 September 2003 :  02:38:11  Show Profile  Visit Gremlin's Homepage
I opened 40 topics at once, so theres a lag between me reading and replying to them :p

err but thats still not quite right there, no Nameserver entry is required for a subdomain if *.domain.com points to the same IP that the subdomains are residing on, the Host Header Entry is purely in IIS and nowhere else.

Kiwihosting.Net - The Forum Hosting Specialists

Edited by - Gremlin on 14 September 2003 02:40:22
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 September 2003 :  02:52:16  Show Profile  Visit dayve's Homepage
let me rephrase, when I say a nameserver entry, I am talking about a valid DNS address at the registrar and NOT the forwarding feature that some of these registrars offer. I guess I was too simplistic in my answer because I was just trying to keep it short in order to answer the original question.

Yes, with a proper nameserver configured for a webserver/ip, you can edit the host header in IIS. I have done this myself with sub domains and multiple domains. For instance, all of these sites right directly from my home server...

http://www.burningsoulsforum.com
http://forum.burningsoulsforum.com
http://dayve.d2g.com



all of them on port 80 with the same ip address but with specific host header information.

the script that simonduz displayed will not provide him with the feature he was looking for as it is only a virtual directory.

**phew** that will teach me to give short/blunt answers again


Edited by - dayve on 14 September 2003 02:57:11
Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 14 September 2003 :  03:11:06  Show Profile  Visit Gremlin's Homepage
Actually what I'm saying is you do not need a valid DNS Entry for each subdomain, you only need one per IP address.

e.g. you can have the following DNS Entry

*.burningsoulsforum.com -> 127.0.0.1

The "*" works just as you would expect, it's a wildcard so any request like www.burningsourls.com, forum.burningsoulsforum.com forum5.burningsoulsforum.com or dayve.burningsoulsforum.com will all resolve to 127.0.0.1 without having to have their own DNS entries, they're all covered by the wilcard "*" entry.

From there its just a matter of making IIS aware of them by inserting the appropriate Hosts Header Names into IIS as you've described above.

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page

dayve
Forum Moderator

USA
5820 Posts

Posted - 14 September 2003 :  03:16:33  Show Profile  Visit dayve's Homepage
I really believe we are saying the same exact thing. I am talking about 2 different instances.

Same Domain Example
Different Domain Example

Both can be attached to same IP address with Host Headers. However, my burningsoulsforum.com registrar requires its own nameserver entry and my dayve.d2g.com requires its own nameserver entry.

Go to Top of Page

Gremlin
General Help Moderator

New Zealand
7528 Posts

Posted - 14 September 2003 :  03:30:11  Show Profile  Visit Gremlin's Homepage
Yes becuase they are different domains, I thought the subject here was subdomains though in which case the domain name is always the same :)

Kiwihosting.Net - The Forum Hosting Specialists
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07