Doug's Blog
Random thoughts on IT, Radio, Scouting and other topics....
All Electronics Software Security Personal Scouting

Wed, 20 Apr 2005

Virtual Hosting

I was having a chat with some help desk guys from my hosting company. I run 3 domains, and was impressed that all I needed to do to add a domain was to add a directory structure under my www directory, and arrange to have a domain registered.

I was actually expecting to have to go and have the help desk guys edit the apache configuration for me. (Thats how I would have done it at home).

Here is their response:

------------------------------------------------
We use the apache module "mod_vhost_alias". If a browser requests a domain that points to 63.111.27.87 and that domain has a directory in ~/www, it becomes the DocumentRoot.

Your VirtualHost section looks like this:

ServerAdmin webmaster@drj-electronics.com
ServerName drj-electronics.com
ErrorLog /home2/username/www/logs/error
ServerSignature off
VirtualDocumentRoot /home2/username/www/%0
VirtualScriptAlias /home2/username/www/%0/cgi-bin
User username
Group users
DocumentRoot /home2/username/www

------------------------------------------------

Boy, hasn'y apache grown up while I wasn't watching.

[/Software] permanent link

Site Links
Projects - Some of my projects
DRJ-Consulting - A site focused on saving energy.
Dougs Word Clocks - I make my own clock that tells the time using words.
we Just Dont Talk About That - A site for sharing funny family stories.
Megan's weblog
Email me at doug@stillhq.com

Archives
Login:
Password:

XML Feeds

RSS 2.0