TOPIC
MultiDomain Support allows you to configure your Web server to host different web sites. A unique home page can be served for each site, a function of the URL used at the client. This is useful for Internet Service Providers, or other server administrators who manage a Web Server for various customers, each of whom want the URL to their home page to reflect their domain or company name.
DISCUSSION
Setting Up Multi Domain Support This section describes how to set up your Web Server to support multiple domain names. There are two approaches to this: The instructions below address the first method; if you decide to use multiple IP addresses, see the note at the bottom of this page for assistance in setting up multiple IP addresses, then follow the instructions here with this exception: have your DNS tables map each domain name to the appropriate (i.e., different) IP address, and include the IP addresses in the Multi Domain Settings file, rather than the domain names for these sites. Step 1: Create separate web folders for each domain. AppleShare IP 6.1 allows you to configure the Web Server to host up to 50 domains. For each domain, create a folder on the hard disk that will include a default.html page. For example, you might have 3 clients: Alpha, Baker, and Charlie. Make a folder named "Alpha" that contains the default web page, other pages, and media, that you want visitors to see when they visit the Alpha site. Do the same for Baker and Charlie. The folders can reside anywhere on the hard drive. The folders might look like: Step 2: Create appropriate DNS entries for each domain. Each domain name will need an entry in your DNS tables, mapping it to the IP address of the server. In the example below using MacDNS, our domain is "company.com", but zone files have also been created for each of our customers : Note that each domain name above is mapped to the same server. No matter which domain name is used in the URL (www.alpha.com, www.baker.com, etc.), the IP address returned will be 17.104.104.89, thus all requests will go to the same ASIP server. Note also that, when preparing Web sites that will be available on the InterNet, each domain name must be registered with InterNIC, and the IP address of the primary name server for each domain specified; otherwise, other name servers and clients on the Internet will not be able to resolve those domain names. Step 3: Create the Multi Domain Settings file You will find a plain text file called "Multi Domain Settings," in the "Plug Ins" folder in your default Web Folder. Use SimpleText to open and edit that file. The syntax for Multi Domain Settings file is described below. Each line of the file contains either the domain name or IP address, the port number, and the path to the web files for that domain on the server. This is an example of the contents of a Multi Domain Settings file; while this example shows using port 80 for each domain, a different port number could be selected (just make sure the port number you select is not used by another application running on the server. Extract from a Multi Domain Settings file:
dns=17.104.104.89 port=80 path=Macintosh HD:Web Folder: dns=www.alpha.com port=80 path=Macintosh HD:Client Folders:Alpha dns=www.baker.com port=80 path=Macintosh HD:Client Folders:Baker dns=www.charlie.com port=80 path=Macintosh HD:Client Folders:Charlie Note that the first site specified is going to be our default, and the domain/path through which Remote Administration will be used. In the second line, we are specifying what page we want served if someone uses the IP address of the server to connect, rather than a domain name. The following lines define the paths for our customer folders. Step 4. Settings in Web & File Admin Program Verify in the ASIP Web & File Admin program that:
Stop and restart the Web & File Services, for the Multi Domain Settings file to be recognized. Step 5. Test from a client Test the Multi Domain configuration by connecting to the web server from any client, using each of the domain names you set up: www.alpha.com, www.baker.com, www.charlie.com, and www.company.com. If Plug In Messaging has been enabled in Web & File Server Settings, you can also check the Plug In Messages file found in System Folder:Preferences:AppleShare IP Preferences:HTTP Logs: to view the list of sites your server is ready to support. NOTE: Using the same domain name with multiple ports does not work. For example, having www.company.com serve Alpha's page at port 8070, Baker's page at 8080 and Charlie's page at 8090, is not supported in this version (may be implemented in future). Troubleshooting tips
The second way of configuring the ASIP server for multi domain support is to set up secondary IP addresses at the server, and have the clients' domain names mapped to the secondary addresses. Open Transport 1.3 or later and a PCI-based server is required to support this capability, which is called 'single-link multihoming', 'IP multinode support', or 'IP aliasing.' This method is needed when clients are using older browsers (such as Mosaic) which may not support HTTP 1.1; in these cases, the domain name the client used in the URL is not passed to the server; only the IP address is. Thus, the ASIP Web Server must use the IP address to determine what home page to send to the client. When using this method, you should use IP addresses, rather than the domain name, in the Multi Domain Settings file.
|
Document Information | |
Product Area: | Apple Software; Communications-Networking |
Category: | AppleShare |
Sub Category: | AppleShare for Mac OS |
Copyright © 2000 Apple Computer, Inc. All rights reserved.