Solved

host multiple domain on iis4

Posted on 2000-04-12
5
207 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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

The Need In an Active Directory enviroment, the PDC emulator provide time synchronization for the domain. This is important since Active Directory uses Kerberos for authentication.  By default, if the time difference between systems is off by more …
I'm a big fan of Windows' offline folder caching and have used it on my laptops for over a decade.  One thing I don't like about it, however, is how difficult Microsoft has made it for the cache to be moved out of the Windows folder.  Here's how to …
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

771 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

12 Experts available now in Live!

Get 1:1 Help Now