Go2Linux | Linux Operating System

A site dedicated to: Linux Operating System

Shell Script Automatic Install (create) Apache2 Virtual Servers

Date: 2007-04-13 00:00:00 -0400

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)

If you liked this article please share it.

powered by TinyLetter

If you want to contact me in any other way, please use the contact page.