From owner-freebsd-questions@FreeBSD.ORG Wed Sep 7 07:44:58 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 DF18916A41F for ; Wed, 7 Sep 2005 07:44:58 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: from goofy.cultdeadsheep.org (charon.cultdeadsheep.org [80.65.226.72]) by mx1.FreeBSD.org (Postfix) with SMTP id 42B6A43D53 for ; Wed, 7 Sep 2005 07:44:56 +0000 (GMT) (envelope-from sheepkiller@cultdeadsheep.org) Received: (qmail 76494 invoked by uid 1000); 7 Sep 2005 09:44:54 +0200 Date: Wed, 7 Sep 2005 09:44:54 +0200 From: Clement Laforet To: Vizion Message-ID: <20050907074454.GB47096@goofy.cultdeadsheep.org> References: <20050906125950.fh0x80jdw0gow0k8@webmail.muly.dk> <200509061020.53479.vizion@vizion.occoxmail.com> <200509061609.25444.vizion@vizion.occoxmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="v9Ux+11Zm5mwPlX6" Content-Disposition: inline In-Reply-To: <200509061609.25444.vizion@vizion.occoxmail.com> User-Agent: Mutt/1.5.6i Cc: users@httpd.apache.org, freebsd-apache@freebsd.org, freebsd-questions@freebsd.org 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: Wed, 07 Sep 2005 07:44:59 -0000 --v9Ux+11Zm5mwPlX6 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 06, 2005 at 04:09:24PM -0700, Vizion wrote: > On Tuesday 06 September 2005 10:20, the author Vizion contributed to the= =20 > dialogue on- > [users@httpd] Virtual host config:=20 >=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. FreeBSD port default configuration restricts access to ${PREFIX}/www.=20 You must explicitly allow access to other directories. clem --v9Ux+11Zm5mwPlX6 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFDHpp2sRhfjwcjuh0RAgW5AJ9DB07729qXc2TPZwxWzI1GnVqDqwCfYKU5 iDo0BzuNszbJgWOHOC3Ctgs= =n4kw -----END PGP SIGNATURE----- --v9Ux+11Zm5mwPlX6--