8-6 Dell PowerVault 720N, 740N, and 760N System Administrator and Command Reference Guide
map virtual host addresses to the virtual host interface with the
ifconfig
command
'LUHFWLQJ+7735HTXHVWV
To direct HTTP requests, use the following format in the /etc/httpd.hostprefixes file as
shown in Table 8-1:
SUHIL[>KRVWQDPHRUDGGUHVV@
For example, the line
FXVWRPHUZZZFXVWRPHUFRP
means that an HTTP request that comes for the interface with address
192.225.37.102, or with an HTTP 1.1 Host: header specifying www.customer.com, is
directed to /customer, and the requestor cannot get a file outside the /customer
directory.
If the HTTP server receives an HTTP request that is destined for one of its virtual host
IP addresses, in this example 192.225.37.102, the destination IP address is used to
select the virtual host root directory from the /etc/httpd.hostprefixes file.
0DSSLQJ9LUWXDO+RVW$GGUHVVHV
To map virtual host addresses to the virtual host interface, use the ifconfig com-
mand, as follows:
Add a new IP virtual host address mapping with the following command:
ifconfig vh alias
address
where
address
is an IP address.
The use of the vh interface indicates to the system that you are adding a virtual
host address rather than adding an IP alias address to a network interface.
Delete virtual host addresses with the following command:
ifconfig vh -alias
address
7DEOH+7735HTXHVW9DULDEOHV
9DULDEOH 'HVFULSWLRQ
prefix
Specifies a subdirectory in the HTTP
root directory, which is defined by the
options httpd.rootdir command.
host-name-or-address
Specifies an HTTP host name or an IP
address. You can have more than one
of each.