Solved

host multiple domain on iis4

Posted on 2000-04-12
5
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

Suggested Solutions

This article offers some helpful and general tips for safe browsing and online shopping. It offers simple and manageable procedures that help to ensure the safety of one's personal information and the security of any devices.
An article on effective troubleshooting
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

751 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