
| Using vaddhost to Automatically Configure Virtual Subhosts |
For each Virtual Subhost you would like to add on Virtual Server, you will need to add what is known as a "<VirtualHost>" entry in your main web service configuration file (httpd.conf). You can manually configure Virtual Subhosts on your Virtual Server or you can use the utility "vaddhost".
The vaddhost utility functions similarly to the "vadduser" utility (which adds new E-mail/FTP accounts to your Virtual Server). The vaddhost utility will ask you several questions about the configuration of your Virtual Subhost and provide you with default responses. As you answer each question, vaddhost will display the <VirtualHost> definition with each new piece of information. Once you have responded to all questions, vaddhost will create necessary directories and add the <VirtualHost> entry to your main web server configuration file (httpd.conf). An outline of all the vaddhost steps and an accompanying explanation is included below.
|
After you have completed these steps, vaddhost will create all necessary directories and add the <VirtualHost> entry to your main web server configuration file (httpd.conf) and create a backup of your old httpd.conf file in your ~/www/conf directory. You can remove these backup files at your discretion.