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
|
|
|