When ever you may need to create Virtual Servers for Apache2, you can use this script.

It will create the directory, the config file, and the symbolic link to the /etc/apache2/sites-available in the /etc/apache2/sites-enabled, so will do the job for you. The usage of the script is:

./virtual_site_creator [FQDN] FQDN = your fully qualified domain name for your virtual server.

i.e. if your virtual server to be created is

linux.go2linux.org

the command should be

./virtual_server_creator linux.go2linux.org

after executing it, you just need to go to:

/var/www/linux.go2linux.org/ and create the index.html.

Job Done!

Download the shell script for automatic Virtual Server configuration

Related Archives Debian 4 (Etch) installation Screenshots

Apache2 installation on Debian 4 (Etch)