Using the <VirtualHost> tag in the httpd.conf file (add them at
the end of the file) create two VirtualHosts.
The names of your virtual hosts have to be worked out by yourself from
your current hostname. Type in the command "hostname" and you will get
something like:
host-3-2.linuxzoo.net
Your machine is known by this name in DNS. It is also known by two other
names, where the word "host" has been replaced with "web" and "vm".
In this example of host-3-2, this machine is also known as:
web-3-2.linuxzoo.net
vm-3-2.linuxzoo.net
IMPORTANT: Do not just copy this example, as your machine number is likely
to be entirely different. Use "hostname" and work your machine names out for
yourself.
Once you have your web and vm machine names, create a virtual host entry
for each of web-?-?.linuxzoo.net and vm-?-?.linuxzoo.net, so that the
DocumentRoot of web is /home/dave/public_html/web and the DocumentRoot
of vm is /home/dave/public_html/vm.
To use VirtualHost, the line
NameVirtualHost *:80
must be uncommented. In addition, each VirtualHost tagged area looks something
like:
<VirtualHost *:80>
ServerAdmin me@grussell.org
DocumentRoot /home/gordon/public_html/db/public_html/activesql
ServerName sql.grussell.org
ErrorLog logs/sql-error_log
CustomLog logs/sql-access_log common
</VirtualHost>