Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 7 Sep 2005 09:44:54 +0200
From:      Clement Laforet <sheepkiller@cultdeadsheep.org>
To:        Vizion <vizion@vizion.occoxmail.com>
Cc:        users@httpd.apache.org, freebsd-apache@freebsd.org, freebsd-questions@freebsd.org
Subject:   Re: [users@httpd] Virtual host config
Message-ID:  <20050907074454.GB47096@goofy.cultdeadsheep.org>
In-Reply-To: <200509061609.25444.vizion@vizion.occoxmail.com>
References:  <20050906125950.fh0x80jdw0gow0k8@webmail.muly.dk> <e498c1660509060951d07832d@mail.gmail.com> <200509061020.53479.vizion@vizion.occoxmail.com> <200509061609.25444.vizion@vizion.occoxmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--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
> >
> ><VirtualHost x.x.x.x>
> >=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
> ></VirtualHost>
> >
> >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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050907074454.GB47096>