Koozali.org: home of the SME Server

virtual host

b stephen harding

virtual host
« on: October 25, 2001, 10:23:48 PM »
VERY easy to do. but where do you do it in e-smith. ??


Setting up a single daemon with virtual hosts
For this case, a single httpd will service requests for the main server and all the virtual hosts. The VirtualHost directive in the configuration file is used to set the values of ServerAdmin, ServerName, DocumentRoot, ErrorLog and TransferLog or CustomLog configuration directives to different values for each virtual host. e.g.


www.smallco.com>
ServerAdmin webmaster@mail.smallco.com
DocumentRoot /groups/smallco/www
ServerName www.smallco.com
ErrorLog /groups/smallco/logs/error_log
TransferLog /groups/smallco/logs/access_log



www.baygroup.org>
ServerAdmin webmaster@mail.baygroup.org
DocumentRoot /groups/baygroup/www
ServerName www.baygroup.org
ErrorLog /groups/baygroup/logs/error_log
TransferLog /groups/baygroup/logs/access_log


Sincerely,


Bruce Harding
Manager: Computer Books For Less
Manager of Procurements: Computer Supply House


105 O'Connor Street
Ottawa ON K1P 5M8
Canada
Phone: 613-233-7418
Fax: 613-233-6823


http://www.computerbooksforless.com