Virtual hosts are also known as virtual subhosts or
subhosts. They are the domains added to the primary domain’s virtual server.
Add a virtual host only after you have added its associated user.
Viewing Virtual Hosts
To view the domains hosted on your VPS v2 Virtual Server, from the iManager
Tools and Wizards screen, beside Virtual Hosts, click View All.
Adding a Virtual Host
To add a virtual host:
-
From the iManager Tools and Wizards screen, beside Virtual Hosts, click Add.
-
Using the following examples in parentheses, provide information for the
form. Descriptions of each of these virtual host configuration elements are on
the screen.
-
Host name (xsc.biz)
-
Server Name (www.xsc.biz)
-
Server Admin (webmaster@xsc.biz)
-
Document Root (/home/bob/home/enetrics/www/enetrics.com)
-
Script Alias (/cgi-bin/home/bob/www/cgi-bin)
-
TransferLog (/usr/local/apache/logs/bob/domain-access_log)
-
Error Log (/usr/local/apache/logs/bob/domain-error_log)
-
Other Directives
-
To indicate the virtual host’s placement in the /www/conf/httpd.conf file, click the dropdown
list, make a selection, and click Populate
VirtualHost Directives from Template if needed.
-
Click Submit.
-
Click Restart Apache.
Note: All log files
are owned by root and count against his quota. Subhosts can only view the log
files and cannot modify them. To change ownership of the log files type the
following at the command prompt as root:
% chown username:groupname logfile
Editing a Virtual Host
To edit a virtual host:
-
From the iManager Tools and Wizards screen, beside Virtual Hosts, click Edit.
-
Highlight the virtual host you want to edit, and click Select Virtual Host.
-
Edit the form.
-
Click Submit Changes.
-
Click Restart Apache.
Removing a Virtual Host
To remove a virtual host:
-
From the iManager Tools and Wizards screen, beside Virtual Hosts, click Edit.
-
Highlight the virtual host you want to edit, and click Select Virtual Host to be removed.
-
Click Yes Remove the Above Virtual Host.
-
Click Submit.
-
Click Restart Apache.
|