IIS 5 with more than one website?
#1
Posted 25 February 2002 - 08:45 PM
#2
Posted 25 February 2002 - 08:51 PM
#3
Posted 25 February 2002 - 09:25 PM
#4
Posted 25 February 2002 - 09:29 PM
The answers he gave you are correct...but they're kinda vague....sorry Clutch
Clutch is an extremely busy guy....When you're as talented as he is, everybody expects the world from you. But that's why I am offering my assistance....Besides, he taught me how to do it !! So if you need any in depth assistance, don't be afraid to email me.
Clutch, I hope you don't feel that I'm stepping on your toes....I was just trying to help with the massive load that sits on your shoulders. Besides, I could use the refresher course of running thru it again with someone
Klark
#5
Posted 25 February 2002 - 10:42 PM
Nope, that's fine. Give it a shot with Klark and see how it goes, as I am sure he can get you through it (we went over this many times, didn't we klark? ;)). The answers were short as I was under the impression that you were more familiar with IIS than you seem to be. But fear not, if Klark can't get you through this, I can.
Also, Klark, since he is more concerned about outside people coming in, all he needs is to have port 80 going to the one server, unbind the multiple IPs (as they aren't needed since he's going to use host headers), and apply the desired host header to each site in the IIS console. The DNS/WINS stuff will be of more use for internal network usage, and not much if he is just using simple NAT.
#6
Posted 26 February 2002 - 01:07 AM
#7
Posted 26 February 2002 - 01:15 AM
http://www.driventechnologies.com
is my normal site, and my "test" subdomain was just added (thanks to Terminal Services):
http://test.driventechnologies.com
I am using a single Linksys BEFSR41 router with just port 80 forwarded, and I am using TZO's dynamic DNS service to point driventechnologies.com to my cable IP.
#8
Posted 26 February 2002 - 01:23 AM
I just couldn't figure out the subdomain structure. I am on Time Warner RR connection if that's important too.
Thanks,
#9
Posted 26 February 2002 - 01:31 AM
Well, right now if I ping both of those names, only damonandamber.com properly returns an IP and can ping it, while dreddnet.com returns a *different* IP and is not replying to a ping request (possible old IP). I would first make sure that they always point to your external IP, and then worry about host headers. When you can get the IP issue fixed, let us know so we can move on to host headers.
BTW, the same way I setup subdomains will work with TLDs (Top Level Domains) too.
#10
Posted 26 February 2002 - 01:37 AM
#11
Posted 26 February 2002 - 01:39 AM
http://www.iisanswers.com/articles/dns_for_iis.htm
Also, is this server fully secured (patched up at *least*)? You seem pretty new at this, and I would like to make sure your server is up to date on the patches at a minimum, and (hopefully) locked down with the IIS Lockdown Utility from Microsoft.
#12
Posted 26 February 2002 - 01:40 AM
You CAN host more than one site with just one IP...using the host headers as Clutch described. This would have been alot easier than doing all that Zonedit/nameserver wizardary that you did.
First, remove the multiple IP's from the box...you'll only need one. In your IIS console, right click the FIRST site, go to 'Propeties', then you'll see IP address. Change the IP back to 'All Unassigned'. Then click the 'Advanced' button. Inside there is where you'll assign www.domain1.com ...or whatever the name is.
Then, do the exact same for the second site...but use the other name. Both sites should be 'All Unassigned', and port 80.
I'm going to speculate how this actually works: When someone requests www.domain1.com, that info is placed in the 'header' of the packet that they request from/to? the server. IIS then reads the 'header' and then routes that person to the correct site. Im sure Clutch will probably school me on this, but thats why I come here....lol
Though after reading everything else you posted, I'm probably just getting in the way of Clutch helping you....so I'll just shutup and sit back and read what happens...lol
Good luck...
Klark
#13
Posted 26 February 2002 - 01:45 AM
#14
Posted 26 February 2002 - 01:52 AM
#15
Posted 26 February 2002 - 01:55 AM
I see that they both have the same IP now, so that's what did it. You probably had the host headers in there already but you just needed the name resolution bit to be ironed out.
#16
Posted 06 November 2002 - 10:46 AM
Thanks in Advance,
David
#17
Posted 06 November 2002 - 06:16 PM
Hang on there bud, there's a couple of ways to go about this. Now, what you "could" do (and this is the easiest) is simply have both sites point to the same IP and port (generally 80) and then use "host headers". What host headers do is read the incoming URL request for the desired TLD (Top Level Domain), and then brokers that traffic and sends it to the correct site. For instance, you host siteA and siteB:
www.siteA.com
www.siteB.com
On the server, you right click on each site and select properties. Then, on the Web Site tab select the advanced button. Now you will see the entries at the top that the site will respond to. You can just add each name for that particular site there, such as:
For siteA
www.sitea.com
sitea.com
sitea (if using this on a LAN and you already have sitea listed in either the WINS DB or in your LMHOSTS file to point to the IIS server IP)
For siteB
www.siteb.com
siteb.com
siteb (same rules as above)
Make sure to specify the IP (it can be "all unassigned" if you want it to monitor all addresses for these requests) and port that you want to use.
Now, if you want to use IIS FTP, you will not have the luxury of host headers, so if you want to maintain these sites via IIS FTP you will need to create separate directories. You can even configure IIS to dump certain NT logons directly into their own directories on the server or on the network (like assigning home dirs in a normal FTP server). If this is needed, ask.
Another option is to setup your own DNS box to answer name server requests. If, for some reason, you *need* to host your own DNS system, then this can be done in Windows 2000 (I wouldn't recommend it, as from what I have see it can get easily saturated with replication traffic if not setup properly and/or not on a fairly strong box). You would know if you need to do this if you asked the registrar to use your own server IP as the name server (normally this would be your ISPs or dynamic service like DNS2Go or TZO). Simply run through the DNS wizard and add your primary zone (and then you might want to add your reverse lookup as well), and then assign your DNS names for each box there. At that point, once each machine that needs to be listed (and has "real", static IPs to the Internet) has been entered, you can enter the respective site in there as well. You can enter "www.sitea.com", "sitea.com", and "ftp.sitea.com" if needed into the sitea.com DNS zone. You will have to do this for your other domain name as well. Remember, this is simply a gloss-over to give you an idea of what to do in this situation, but you should make sure to read over the documentation and make *ABSOLUTELY POSITIVE* that you are up to date on patches and security templates (such as using IISLockdown/URLScan on your IIS box and/or the hisec.inf template for your server). Many people choose Windows 2000 over *nix and BSD because it's easier to get started, but never take the time to actually learn what they are doing and get burned for it in the end.
Here's one site giving a fairly simple layout of DNS for the entry level IIS admin.
http://www.iisanswers.com/articles/dns_for_iis.htm
Here's another link:
http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q190008&
Good luck, I'll expand up this later.

Help










