The VirtualHostFrame reference manual

All resources All frames

# VirtualHostFrame

This frame will allow you to do multihoming. This technic is a way to host multiple logical web servers on the same physical process. Jigsaw supports only Host header based virtual hosting, which does not consume IP addresses.

As for other frames that are suposed to be attached to the root resource of your server, you should be very cautious when using that kind of frame. In particular make sure the followup attribute is set to a resource which can be a root resource.

Each child of the resource associated to the VirualHostFrame must be named under the host name it will serve. If you have a machine A with names name.foo.com and alias.foo.com, and if the server is running on port 8001, then requests prefixed by http://name.foo.com:8001/ will be dispatched to the child resource of the associated resource named name.foo.com:8001 and requests prefixed by http://alias.foo.com:8001 to child resource alias.foo.com:8001.

Warning: Unless you understand what you are doing, children of that resources should only be either MirrorDirectory or PassDirectory instances.

Note: Must be associated with a VirtualHostResource.

## Inherits

The VirtualHostFrame class inerits from the following classes:

- Resource
- FramedResource
- ResourceFrame
- ProtocolFrame
- HTTPFrame

## Attributes description

The VirtualHostFrame defines the following attributes:

- followup

`followup`

semantics
  The deafult resource for handling unknown hosts. This attribute should provide the name of a resource existing within the root resource store of the server.
type
  This attribute is an editable StringAttribute
default value
  This attribute defaults to null.

Jigsaw Team
$Id: org.w3c.jigsaw.frames.VirtualHostFrame.html,v 1.3 1998/03/27 08:19:39 bmahe Exp $