[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Virtual hosting on a Qube2



James Said:
Hi
I need to set up two separate web site on a Qube2.
Can anyone point me in the right direction for information on setting
up virtual hosting a Qube2.
Thanks
James
>>>>>>>>>>>>>>>>>>>>>>

James,
This can be done.  I've done it with my own Qube2.
You have to edit by hand the httpd.conf file and put the <VirtualHost>
directives in.  If you want the server to handle email for those domains,
you'll need to add them to the sendmail.cw file by hand also.  What i did
was set up each domain as a user and published the html files via FTP to
those users directories, then gave each <VirtualHost> directive the
appropriate DocumentRoot of home/users/username.

There may be some special DNS setting requried to do this also.  My qube was
Colo'd at the time, so I didn't have DNS turned on and the DNS was set up
somewhere else and administered by the colo host.  I'm in the midst of
trying to reconstruct this scenario for my self on a LAN/WAN with DSL and
using the Qube2 as DNS and I'm not having such great luck, but I know it can
be done.

Warning:  1) This voids your Cobalt waranty  2) MAKE BACKUP COPIES OF
HTTPD.CONF FIRST BEFORE EDITING!

My httpd.conf settings for each virtual host looked like this: ( you have to
have two entries, with and without the www in the ServerName Directive if
you want browsers to be able to find it with and with out the host name.)

<VirtualHost 123.45.678.91>
ServerAdmin me@xxxxxxxxxxxx
DocumentRoot /home/users/username
ServerName somedomain.com
ErrorLog logs/www.somedomain.com-error_log
TransferLog logs/www.somedomain.com-access_log
</VirtualHost>

<VirtualHost 123.45.678.91>
ServerAdmin me@xxxxxxxxxxxx
DocumentRoot /home/users/username
ServerName www.somedomain.com
ErrorLog logs/www.somedomain.com-error_log
TransferLog logs/www.somedomain.com-access_log
</VirtualHost>

Eric Lewis
www.erixis.com
eric@xxxxxxxxxx