Host prefixes editor

This window enables you to view and edit the /etc/httpd.hostprefixes file, which determines how the filer maps virtual hosts to their root directories. In the /etc/httpd.hostprefixes file, you specify a subdirectory in the filer's HTTP root directory that contains pages belonging to a virtual host. A client connecting to that virtual host can only access files in the specified subdirectory.

Virtual hosting enables a filer to respond to requests directed to more than one IP address through a single physical interface. For example, an Internet provider can host several Web sites but has only one physical interface.

The filer uses one of the following types of information to find the directory that contains the pages belonging to a virtual host:

  • the IP address used when the client made the HTTP connection to the filer
  • the Hosts: header in an incoming HTTP request

The following list describes the information displayed in this window:

Prefix
The subdirectory of the filer's HTTP root directory that contains files and directories that can be transferred to clients of the virtual host by the HTTP protocol.
Host Names/Addrs
The name or IP address of the virtual host associated with the subdirectory. If the name is an alias for a virtual host, the filer resolves the name to the IP address of the virtual host. Then the filer directs all HTTP requests with that IP address to the subdirectory specified for the name, regardless of the Host: header in the requests.

The following list describes how to use the buttons in this window to edit the /etc/httpd.hostprefixes file:

Reload
Reloads the existing /etc/httpd.hostprefixes file from the filer.
Save
Saves the changes to the /etc/httpd.hostprefixes file. Changes to the file take effect immediately.
Insert
Click anywhere in the display and click Insert to add an entry to the /etc/httpd.hostprefixes file.
Modify
Click the appropriate entry in the display and click Modify to modify the entry in the /etc/httpd.hostprefixes file.
Delete
Click the appropriate entry in the display and click Delete to delete an entry from the /etc/httpd.hostprefixes file.