From owner-freebsd-questions@FreeBSD.ORG Tue Sep 6 23:13:33 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A43DB16A41F; Tue, 6 Sep 2005 23:13:33 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from lakecmmtao05.coxmail.com (lakecmmtao05.coxmail.com [68.99.120.79]) by mx1.FreeBSD.org (Postfix) with ESMTP id EDCD543D45; Tue, 6 Sep 2005 23:13:32 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dns1 ([64.58.171.82]) by lakecmmtao05.coxmail.com (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050906231333.XIIW2425.lakecmmtao05.coxmail.com@dns1>; Tue, 6 Sep 2005 19:13:33 -0400 From: Vizion To: users@httpd.apache.org, freebsd-apache@freebsd.org, freebsd-questions@freebsd.org Date: Tue, 6 Sep 2005 16:09:24 -0700 User-Agent: KMail/1.8 References: <20050906125950.fh0x80jdw0gow0k8@webmail.muly.dk> <200509061020.53479.vizion@vizion.occoxmail.com> In-Reply-To: <200509061020.53479.vizion@vizion.occoxmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200509061609.25444.vizion@vizion.occoxmail.com> Cc: Subject: Re: [users@httpd] Virtual host config X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Sep 2005 23:13:33 -0000 On Tuesday 06 September 2005 10:20, the author Vizion contributed to the=20 dialogue on- [users@httpd] Virtual host config:=20 >Hi > >My Apache2 runs on Unix (Freebsd) with >httpd.conf including >ServerRoot "/usr/local" >DocumentRoot "/usr/local/www/data" > >It is so long ago that I was working on apache that I have forgotten the >basics! > >I am adding a number of virtual hosts the files =A0located as > >/usr2/virtualhosts/vhostname1/ >/usr2/virtualhosts/vhostname2/ >etc > >I want to keep the existing website running under /usr/local/www/data as > well as the virtual hosts. > >I do not want to try the Virtual-Host Aliases until I have got my head > around the basics! > >I have set up a virtualhosts.conf file using an Include directory: > >Include etc/apache2/Includes/*.conf > > >=A0=A0=A0=A0=A0=A0=A0=A0DocumentRoot /usr2/virtualwebs/vhostname1 >=A0=A0=A0=A0=A0=A0=A0=A0ServerName vhostname1.com >=A0=A0=A0=A0=A0=A0=A0=A0AcceptPathInfo On > > >I am clearly not getting my set up/permissions right because I get > >You don't have permission to access / on this server. > >It seems =A0some needed directives are missing from the virtualhosts.conf > and/or httpd.conf files. > >Despite reading the documentation I do not get it! I have also tried using a link dns1# cd www dns1# ls -l total 14 lrwxr-xr-x 1 root wheel 18 Sep 6 14:20 virtualwebs -> /usr2/virtualwe= bs/ =20 with virtualhosts.conf carrying entries of: DocumentRoot /www/virtualwebs/vhost1.com ServerName vhost1.com AcceptPathInfo On and tried DocumentRoot /virtualwebs/vhost1.com ServerName vhost1.com AcceptPathInfo On when that did not work In either case I get Warning: DocumentRoot [/www/virtualwebs/vhost1.com] does not exist How can I get this right? david =2D-=20 40 yrs navigating and computing in blue waters. English Owner & Captain of British Registered 60' bluewater Ketch S/V Tauru= s. Currently in San Diego, CA. Sailing bound for Europe via Panama Canal afte= r=20 completing engineroom refit.