From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 03:49:46 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 865FF16A41F; Wed, 7 Sep 2005 03:49:46 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from lakecmmtao06.coxmail.com (lakecmmtao06.coxmail.com [68.99.120.82]) by mx1.FreeBSD.org (Postfix) with ESMTP id CC7AC43D45; Wed, 7 Sep 2005 03:49:45 +0000 (GMT) (envelope-from vizion@vizion.occoxmail.com) Received: from dns1 ([64.58.171.82]) by lakecmmtao06.coxmail.com (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20050907034946.IUQZ24491.lakecmmtao06.coxmail.com@dns1>; Tue, 6 Sep 2005 23:49:46 -0400 From: Vizion To: freebsd-apache@freebsd.org Date: Tue, 6 Sep 2005 20:45:37 -0700 User-Agent: KMail/1.8 References: <20050906125950.fh0x80jdw0gow0k8@webmail.muly.dk> <200509061020.53479.vizion@vizion.occoxmail.com> <200509061609.25444.vizion@vizion.occoxmail.com> In-Reply-To: <200509061609.25444.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: <200509062045.37778.vizion@vizion.occoxmail.com> Cc: users@httpd.apache.org, freebsd-questions@freebsd.org Subject: Re: [users@httpd] Virtual host config SOLVED 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: Wed, 07 Sep 2005 03:49:46 -0000 On Tuesday 06 September 2005 16:09, the author Vizion contributed to the=20 dialogue on- Re: [users@httpd] Virtual host config:=20 >On Tuesday 06 September 2005 10:20, the author Vizion contributed to the >dialogue on- > > [users@httpd] Virtual host config: >>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/virtualwebs/ > >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? OK solved it - the manual I was using gave the impression that the=20 DocumentRoot was specified relative to the server root rather than=20 absolutely. Once I got over that the rest fell into place. Thanks 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.