Solved

host multiple domain on iis4

Posted on 2000-04-12
5
218 Views
Last Modified: 2013-12-23
I am using iis 4 and host a web site e.g. www.abc.com

now I want to host another domain on iis4 e.g.  www.xyz.com

I have created a new zone in dns manager
then how to config iis4 so that people browse www.zya.com it will go to a new web site
0
Comment
Question by:adrianmak
  • 2
  • 2
5 Comments
 
LVL 1

Expert Comment

by:hkmdj
ID: 2707414
In IIS, highlight the computer name, click Action... New... Web Site

Follow the prompts to add directory information and script access.

As long as this machine is answering at the IP specified in DNS, that of which you can have up to 5 different IP's on a single NIC, it will respond to the request.

You may want to be sure to change 'All Unassigned' to the IP specified in DNS.

If the ip is shared by the two web sites, you can host the second one on a different port - instead of 80 use 81, but that must be referenced in the request.

www.abc.com:81

if xyz has it's own IP you are in business.  Otherwise, it is going to be a bit trickier.

Supply more info if nec.

dj
0
 

Author Comment

by:adrianmak
ID: 2707496
that means I should use different IP for different web sites ?
An IP address can not be shared for different web sites.
In order to share ip address, it must use different port for different web site?

It is my understanding, isn't it right ?
0
 

Accepted Solution

by:
berwoje earned 10 total points
ID: 2707631
You can use the same Adress IP too.
you go in properties of the web site (the second one).

folder website, button advanced then you can specify in host header name the name of the second web site.
It will use the same IP.


0
 
LVL 1

Expert Comment

by:hkmdj
ID: 2707688
Not necessarily,  please read this:

Host header names can be used to host multiple domain names from one IP address.
To do this, perform the following steps:
 
1. Start the Internet Service Manager (ISM), which loads the Internet   Information Server (IIS) snap-in for the Microsoft Management Console (MMC).
 
2. Right-click the Web site that should use a host header name, and then click Properties on the shortcut menu.
 
3. On the Web Site tab, select the IP address that the site should use (if you only have one IP address on the server, select All Unassigned), and set the TCP Port that should be used, usually 80).
 
4. Click Advanced.
 
5. In the "Multiple identities for this Web Site" list, select the identity that
 you want to use.
 
6. Click Edit, and then add the desired host header name.
 
   NOTE: If you want this site to respond to more than one host header name, use the Add button to add additional identities to this list. Specify a different host header name for each identity, but be sure to use the same IP address and port.
 
7. Apply these changes and start the Web site (if it is not already running).
 
8. Register the host header name with the appropriate name resolution system.
 
   If the computer is on an intranet (a private LAN that uses Internet technology), register it with the intranet's name resolution system, such as the Windows Internet Name Service (WINS).
 
  If the computer is on the Internet, register the host header name with the
  Domain Name System (DNS), which is administered by InterNic.
 
9. After the host header name is registered with the name resolution system, test it from a browser by attempting to browse the host header name. The browser should open the expected Web site.
 
WARNING: Do not use a host header name with the default Web site. This can cause erratic behavior with add-on packages for IIS (such as Microsoft Proxy Server) that expect the default Web site to use the IP address of "All Unassigned", TCP port 80, and have no host header name.
 
MORE INFORMATION
================
 
To distinguish one Web site from another on the same computer, IIS uses the following three elements:
 
 - TCP/IP address
 
 - TCP port
 
 - Host header name
 
As long as at least one of these three items is unique for each Web site, IIS can manage multiple sites.
 
When IIS receives a request for a Web page, it looks at the information sent in by the browser. If the browser is HTTP 1.1 compliant (for example, Internet Explorer 3.x and later, or Netscape Navigator 3.x and later), the HTTP header contains the actual domain name requested. IIS uses this to determine which site should answer the request.
 


We'll Get there!
0
 

Author Comment

by:adrianmak
ID: 2710481
So If I stopped the second site, when user browse the 2nd site, the iis4 will display the default site (1st site) to user.
Is  it normal ?
0

Featured Post

Windows Server 2016: All you need to know

Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes you might need to configure routing based not only on destination IP address, but also on a combination of destination IP address (or hostname) and destination port number. I will describe a method how to accomplish this with free tools. …
A common practice in small networks is making file sharing easy which works extremely well when intra-network security is not an issue. In essence, everyone, that is "Everyone", is given access to all of the shared files - often the entire C: drive …
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now