Enter your email address:

Delivered by FeedBurner

Shell Script Automatic Install (create) Apache2 Virtual Servers

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)

Share/Save
 #

Hello ! I'm Emmanuel, a student studying IT at a university in Amsterdam and I was giving an assignment to write a linux script that will automatically install Apache, PHP and MySQL all at once on a fedora 8 system. I would be very grateful, if u can help me with the scripts, cos my knowledge of writing script isn't good at all. Thanks a lot and hope to hear 4rm u soon. The deadline 4 submission is dis week's Friday. Hope u'll come up with d script b4 then. Kind regards !!

 
 #

Do you need only to install it?

or also to configure in some way?
regards

Guillermo Garron

 

Navigation

For your laptop needs, visit LaptopLogic - the laptop review site with news, articles, tips and how-to's.

Recent comments