From owner-freebsd-questions Fri Jan 26 17: 1: 9 2001 Delivered-To: freebsd-questions@freebsd.org Received: from xena.gsicomp.on.ca (cr677933-a.ktchnr1.on.wave.home.com [24.43.230.149]) by hub.freebsd.org (Postfix) with ESMTP id 5460237B69D for ; Fri, 26 Jan 2001 17:00:51 -0800 (PST) Received: from hermes (hermes.gsicomp.on.ca [192.168.0.18]) by xena.gsicomp.on.ca (8.9.3/8.9.3) with SMTP id UAA04421; Fri, 26 Jan 2001 20:00:09 -0500 (EST) (envelope-from matt@gsicomp.on.ca) Message-ID: <011f01c087fd$4ce3b140$1200a8c0@gsicomp.on.ca> From: "Matthew Emmerton" To: , References: <20010127003434.75297.qmail@web10604.mail.yahoo.com> Subject: Re: Apache question again Date: Fri, 26 Jan 2001 20:05:53 -0500 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Sorry for not continuing the previous message, but I'm > not at home at the moment. I looked into VirtualHosts > on Apache. Has anybody any experience dealing with > these? I set them up and now either (depending on > which method of guessing I use): neither one works or > they both still point to the secondary host. :( Could > somebody jot up a sample config file for one server (1 > IP) with two domain hosts and different documentroots > for either host. Or perhaps somebody could glance real > quick at the config I have now? I am completely lost. Here's what I use on my internal LAN for two webs I have: NameVirtualHost 192.168.0.2 ServerName doc.mydomain.com ServerAdmin webmaster@mydomain.com CustomLog /var/log/apache-access.log combined ErrorLog /var/log/apache-error.log DocumentRoot /usr/local/www/data/docs.mydomain.com ServerName internal.mydomain.com ServerAdmin webmaster@mydomain.com CustomLog /var/log/apache-access.log combined ErrorLog /var/log/apache-error.log DocumentRoot /usr/local/www/data/internal.mydomain.com As you can see, the only things that really need to be different are the ServerName and DocumentRoot. You can use separate logs if you like, but I just toss them all together. -- Matt Emmerton To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message