
Command ReferenceA-131
NAME
httpd.hostprefixes - configuration of HTTP root directories for virtual hosts
SYNOPSIS
/etc/httpd.hostprefixes
DESCRIPTION
The
httpd.hostprefixes
file maps virtual hosts used in HTTP to corresponding
root directories. The same configuration file is used for both IP virtual hosts (dis-
criminated by the IP address used for connecting to the server) and HTTP virtual
hosts (discriminated by the
Host:
header used in HTTP requests).
Each virtual host has a corresponding subdirectory within the directory specified
by the option
httpd.rootdir
. This subdirectory is called the virtual host root direc-
tory. Clients connected to a virtual host can only access files within the virtual
host root directory.
In the
httpd.hostprefixes
file, each line consists of a virtual host root directory
followed by the names and IP addresses of a virtual host. If you specify an IP
address, the virtual host root directory is associated with the given virtual host for
IP-level virtual hosting. If you specify a name, the virtual host root directory is
associated with the virtual host with that name, using HTTP-level virtual hosting.
If the filer can resolve that name to an IP address, which is used for an IP-level
host alias (see the
alias
option in
ifconfig
), the filer uses that IP address in the
same way as it would if you specified the IP address in the
httpd.hostprefixes
file.
If the
/etc/httpd.hostprefixes
file is edited, it is read again by the HTTP server
after the changes are saved.
EXAMPLE
This example maps requests sent to
www.customer1.com
to the
customer1
subdirectory of
httpd.rootdir
and requests directed at a host with IP address
207.68.156.58 to the subdirectory
customer2
.
/customer1 www.customer1.com
/customer2 207.68.156.58
If the command
filer>ifconfig vh alias www.customer1.com
had been issued before the configuration file was read, requests destined for the
IP address of
www.customer1.com
would also be mapped to the
/customer1
subdirectory, regardless any the
Host:
header they included.
SEE ALSO
ifconfig, options
httpd.hostprefixes
Summary of Contents for PowerVault 720N
Page 1: ... ZZZ GHOO FRP HOO 3RZHU9DXOW 1 1 DQG 1 6 67 0 0 1 675 725 1 200 1 5 5 1 8 ...
Page 6: ...viii ...
Page 48: ...l ...
Page 124: ...3 28 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 252: ...8 12 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 280: ...10 10 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 332: ...14 6 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 344: ...15 12 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 362: ...16 18 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 372: ...17 10 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 392: ...18 20 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 414: ...19 22 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 416: ...A 2 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...
Page 417: ...Command Reference A 3 8VHU RPPDQGV This section contains user commands ...
Page 531: ...Command ReferenceA 117 ...
Page 588: ...A 174 Dell PowerVault 720N 740N and 760N System Administrator and Command Reference Guide ...