Enter your email address:

Delivered by FeedBurner

Shell Script Automatic Install (create) Apache2 Virtual Servers


StumbleUpon Toolbar

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)

Trackback URL for this post:

http://www.go2linux.org/trackback/73
StumbleUpon Toolbar

 If you like this article, subscribe to our full rss

If this article was somehow useful for you, you can leave something in the tip's jar

Please post your question in our forum and use comments only to leave your comments about the article, thanks.

Hello ! I'm Emmanuel, a

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

Do you need only to install it?

or also to configure in some way?
regards

Guillermo Garron

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

Captcha
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

This site is proudly hosted at Bluefur Hosting