TweetFollow Us on Twitter

Multihoming with Homedoor
Volume Number:12
Issue Number:1
Column Tag:Internet Special

Inside HomeDoor

Make one web server act like a network of servers

By Alan B. Oppenheimer

The HomeDoor™ Default Home Page Server is a newly-announced product from Open Door Networks. HomeDoor enables a single Macintosh Web server to serve default home pages for multiple domains. This article describes the inner workings of HomeDoor.

Product Summary

HomeDoor is a Macintosh extension and associated Admin application which enables an Ethernet-based Macintosh to redirect requests for particular default home pages to particular subdirectories on any Web server. For example, HomeDoor can redirect URLs of the form http://www.companyX.com/ to the form http://www.yourwebserver.com/companyX/. HomeDoor supports up to 256 such redirections, allowing you to set up a large number of default home pages on a single MacOS-based Web server. HomeDoor also supports the creation of complete “virtual” domains associated with each of these home pages.

The Web server (or servers) to which HomeDoor redirects requests do not necessarily have to be in the same machine, or even on the same network, as HomeDoor. You configure HomeDoor with a unique IP address for each default home page it is going to serve. You will also generally want to assign a domain name, such as www.companyX.com, to each of these addresses. For each address, you then configure HomeDoor with the URL to redirect that address to. When HomeDoor gets an HTTP request to one of the addresses it’s managing, it redirects that request to the configured URL. HomeDoor can be used to serve default home pages in this manner, and also to serve full “virtual” domains, redirecting not only URLs of the form http://www.companyX.com/, but also URLs of the form http://www.companyX.com/file-or-directory. When redirecting such URLs, HomeDoor preserves the “file-or-directory” part, thus supporting the creation of complete virtual domains.

Multihoming - The Key to HomeDoor

The key architectural component of HomeDoor is multihoming. Multihoming is the ability of a single physical node on a network to have more than one address (or “home”) on that network. Neither MacTCP nor the TCP/IP implementation in Open Transport provides multihoming, although Apple intends multihoming to be a feature of Open Transport 2.0. HomeDoor thus had to implement a simple form of multihoming itself. HomeDoor’s multihoming is limited to those Internet protocols required for HTTP (specifically ARP, IP and TCP), plus a small subset of ICMP so that HomeDoor can respond to pings for its addresses. HomeDoor does not provide a general-purpose implementation of multihoming.

HomeDoor’s multihoming is implemented directly on top of the Macintosh Ethernet driver, below the TCP/IP stack. HomeDoor tells the Ethernet driver to pass it all packets of Ethernet type “ARP” or “IP.” Because of the way the IP protocol suite works, the packets HomeDoor needs to receive are either broadcast (ARP packets), or sent directly to the Macintosh’s Ethernet address (IP packets). This fact is important, because it prevents HomeDoor from needing to have the Ethernet driver listen to every packet sent on the network, which would adversely affect performance.

After being passed an ARP or IP packet from the Ethernet driver, HomeDoor determines if the packet is intended for an address in its address range. If the packet is in range, HomeDoor processes the packet as appropriate, implementing the required parts of ARP, IP, TCP or ICMP. If the packet is not in HomeDoor’s address range, and MacTCP is running, HomeDoor passes the packet to MacTCP. Otherwise HomeDoor discards the packet. By passing packets to MacTCP, HomeDoor can run on the same Macintosh as any MacTCP client or server, and specifically in the same Macintosh as a Web server for which it is serving default home pages. HomeDoor does not, however, require MacTCP to run. HomeDoor also will not currently run at all on a Macintosh which is running Open Transport, due to OT’s radically different driver architecture.

Redirection

As shown below in figure 1, HomeDoor takes advantage of a feature in HTTP known as redirection. A browser wishing to look at a Web page issues an HTTP GET command to the address indicated by the first part of the URL, after obtaining that address from a domain name server (DNS). If the address is being managed by HomeDoor, HomeDoor receives the request and returns an HTTP REDIRECT in response. The REDIRECT contains the actual URL of the associated default home page. The browser receives the REDIRECT and then requests that page directly from the actual server, using the new URL. From then on, the browser talks directly to the Web server if other (relative) links on that server are accessed.

Figure 1. How HomeDoor works

Virtual domains

To be precise, HomeDoor actually does more than simply returning, in the REDIRECT, the URL that has been configured for the address requested. Technically speaking, HomeDoor actually replaces the part of the URL which specifies the Web server itself with the URL to be returned. So a URL of the form http://www.companyX.com/ is returned as http://www.yourwebserver.com/companyX/, but a URL of the form http://www.companyX.com/file-or-directory becomes http://www.yourwebserver.com/companyX/file-or-directory. Since the “file-or-directory” part can in fact be arbitrarily long, a full “virtual” domain can be served by HomeDoor.

Completing the illusion

HomeDoor effectively allows a single Macintosh Web server to serve default home pages, and in fact full virtual domains, for up to 256 different domain names. HomeDoor does so in a manner that is almost totally transparent to Web browsers. The only significant exception is that most browsers display a page’s actual URL in their “location” f ield. Thus, for example a browser user would see the URL http://www.yourwebserver.com/companyX/, even though they typed in or accessed the URL http://www.companyX/. Even this minor side-effect, however, can be eliminated by using a DNS to set up an appropriate alias to the actual Web server, and using HomeDoor to redirect to that alias as opposed to to the Web server itself. For instance, instead of redirecting http://www.companyX.com to http://www.yourwebserver.com/companyX/, you could redirect it to http://www2.companyX.com/companyX/, where www2.companyX.com is an alias for www.yourwebserver.com. In this way, not only will the Web browser user see the correct domain name in the “location” field, but it will appear to the user that the domain in question has not one but two complete Web servers associated with it (www.companyX.com and www2.companyX.com).

Subtleties of HomeDoor

The HomeDoor design contains a number of subtleties which might not be immediately apparent. These subtleties are based on the fact that HomeDoor allows you to enter a full URL for each address it is managing. This flexibility allows, for instance, a single HomeDoor server to serve home pages and virtual domains for more than one Web server. And, although HomeDoor runs on a Macintosh, there is no reason that the Web servers themselves need to be Macintoshes. HomeDoor can serve default home pages for any type of Web server whatsoever. HomeDoor can also redirect URL’s to other network services, allowing, for instance, an HTTP URL to be redirected to an FTP server. Finally, with some small modifications, the HomeDoor architecture can be enhanced to provide many additional services. One area for immediate investigation involves having HomeDoor redirect a particular URL to a URL chosen randomly or sequentially from a group of other URLs, enabling HomeDoor to serve as the front end to a Redundant Array of Inexpensive Computers (RAIC).

How To Find Out More

Open Door Networks maintains a complete set of home pages on the HomeDoor product. Not only do these pages include product details, example pages served by HomeDoor and a full copy of the HomeDoor Users’ Guide, but also a downloadable evaluation version of the current release of HomeDoor. The HomeDoor pages are at http://www.opendoor.com/homedoor/. General information on Open Door Networks, one of the first Macintosh-based Internet service providers, is available at http://www.opendoor.com. Specific questions should be addressed to help@opendoor.com.

[For those of you that would like to see a real life example of this technology, we use HomeDoor on one of our servers in the Xplain Corp./MacTech offices. In fact, the www.mactech.com and www.devcentral.com web sites are redirected using HomeDoor. This allows us to have an all Macintosh Internet site without having to resort to Unix. We’re very pleased with this solution.

There are some minor limitations to the way that HomeDoor works (although it does benefit from an all Macintosh user interface). If you want a different solution, Unix does offer the most complete “multi-homing” solution available. And, if you want to stay with the Macintosh (and why wouldn’t you?), then MachTen from Tenon is your answer - it’s a kinder, gentler Unix. :) - Pub. nst]

 

Community Search:
MacTech Search:

Software Updates via MacUpdate

Latest Forum Discussions

See All

Tokkun Studio unveils alpha trailer for...
We are back on the MMORPG news train, and this time it comes from the sort of international developers Tokkun Studio. They are based in France and Japan, so it counts. Anyway, semantics aside, they have released an alpha trailer for the upcoming... | Read more »
Win a host of exclusive in-game Honor of...
To celebrate its latest Jujutsu Kaisen crossover event, Honor of Kings is offering a bounty of login and achievement rewards kicking off the holiday season early. [Read more] | Read more »
Miraibo GO comes out swinging hard as it...
Having just launched what feels like yesterday, Dreamcube Studio is wasting no time adding events to their open-world survival Miraibo GO. Abyssal Souls arrives relatively in time for the spooky season and brings with it horrifying new partners to... | Read more »
Ditch the heavy binders and high price t...
As fun as the real-world equivalent and the very old Game Boy version are, the Pokemon Trading Card games have historically been received poorly on mobile. It is a very strange and confusing trend, but one that The Pokemon Company is determined to... | Read more »
Peace amongst mobile gamers is now shatt...
Some of the crazy folk tales from gaming have undoubtedly come from the EVE universe. Stories of spying, betrayal, and epic battles have entered history, and now the franchise expands as CCP Games launches EVE Galaxy Conquest, a free-to-play 4x... | Read more »
Lord of Nazarick, the turn-based RPG bas...
Crunchyroll and A PLUS JAPAN have just confirmed that Lord of Nazarick, their turn-based RPG based on the popular OVERLORD anime, is now available for iOS and Android. Starting today at 2PM CET, fans can download the game from Google Play and the... | Read more »
Digital Extremes' recent Devstream...
If you are anything like me you are impatiently waiting for Warframe: 1999 whilst simultaneously cursing the fact Excalibur Prime is permanently Vault locked. To keep us fed during our wait, Digital Extremes hosted a Double Devstream to dish out a... | Read more »
The Frozen Canvas adds a splash of colou...
It is time to grab your gloves and layer up, as Torchlight: Infinite is diving into the frozen tundra in its sixth season. The Frozen Canvas is a colourful new update that brings a stylish flair to the Netherrealm and puts creativity in the... | Read more »
Back When AOL WAS the Internet – The Tou...
In Episode 606 of The TouchArcade Show we kick things off talking about my plans for this weekend, which has resulted in this week’s show being a bit shorter than normal. We also go over some more updates on our Patreon situation, which has been... | Read more »
Creative Assembly's latest mobile p...
The Total War series has been slowly trickling onto mobile, which is a fantastic thing because most, if not all, of them are incredibly great fun. Creative Assembly's latest to get the Feral Interactive treatment into portable form is Total War:... | Read more »

Price Scanner via MacPrices.net

Early Black Friday Deal: Apple’s newly upgrad...
Amazon has Apple 13″ MacBook Airs with M2 CPUs and 16GB of RAM on early Black Friday sale for $200 off MSRP, only $799. Their prices are the lowest currently available for these newly upgraded 13″ M2... Read more
13-inch 8GB M2 MacBook Airs for $749, $250 of...
Best Buy has Apple 13″ MacBook Airs with M2 CPUs and 8GB of RAM in stock and on sale on their online store for $250 off MSRP. Prices start at $749. Their prices are the lowest currently available for... Read more
Amazon is offering an early Black Friday $100...
Amazon is offering early Black Friday discounts on Apple’s new 2024 WiFi iPad minis ranging up to $100 off MSRP, each with free shipping. These are the lowest prices available for new minis anywhere... Read more
Price Drop! Clearance 14-inch M3 MacBook Pros...
Best Buy is offering a $500 discount on clearance 14″ M3 MacBook Pros on their online store this week with prices available starting at only $1099. Prices valid for online orders only, in-store... Read more
Apple AirPods Pro with USB-C on early Black F...
A couple of Apple retailers are offering $70 (28%) discounts on Apple’s AirPods Pro with USB-C (and hearing aid capabilities) this weekend. These are early AirPods Black Friday discounts if you’re... Read more
Price drop! 13-inch M3 MacBook Airs now avail...
With yesterday’s across-the-board MacBook Air upgrade to 16GB of RAM standard, Apple has dropped prices on clearance 13″ 8GB M3 MacBook Airs, Certified Refurbished, to a new low starting at only $829... Read more
Price drop! Apple 15-inch M3 MacBook Airs now...
With yesterday’s release of 15-inch M3 MacBook Airs with 16GB of RAM standard, Apple has dropped prices on clearance Certified Refurbished 15″ 8GB M3 MacBook Airs to a new low starting at only $999.... Read more
Apple has clearance 15-inch M2 MacBook Airs a...
Apple has clearance, Certified Refurbished, 15″ M2 MacBook Airs now available starting at $929 and ranging up to $410 off original MSRP. These are the cheapest 15″ MacBook Airs for sale today at... Read more
Apple drops prices on 13-inch M2 MacBook Airs...
Apple has dropped prices on 13″ M2 MacBook Airs to a new low of only $749 in their Certified Refurbished store. These are the cheapest M2-powered MacBooks for sale at Apple. Apple’s one-year warranty... Read more
Clearance 13-inch M1 MacBook Airs available a...
Apple has clearance 13″ M1 MacBook Airs, Certified Refurbished, now available for $679 for 8-Core CPU/7-Core GPU/256GB models. Apple’s one-year warranty is included, shipping is free, and each... Read more

Jobs Board

Seasonal Cashier - *Apple* Blossom Mall - J...
Seasonal Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Read more
Seasonal Fine Jewelry Commission Associate -...
…Fine Jewelry Commission Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) Read more
Seasonal Operations Associate - *Apple* Blo...
Seasonal Operations Associate - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Read more
Hair Stylist - *Apple* Blossom Mall - JCPen...
Hair Stylist - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Read more
Cashier - *Apple* Blossom Mall - JCPenney (...
Cashier - Apple Blossom Mall Location:Winchester, VA, United States (https://jobs.jcp.com/jobs/location/191170/winchester-va-united-states) - Apple Blossom Mall Read more
All contents are Copyright 1984-2011 by Xplain Corporation. All rights reserved. Theme designed by Icreon.