From owner-freebsd-questions@FreeBSD.ORG Thu Nov 2 22:24:13 2006 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 C771F16A403 for ; Thu, 2 Nov 2006 22:24:13 +0000 (UTC) (envelope-from pgiessel@mac.com) Received: from achilles.leela.ws (achilles.leela.ws [66.207.162.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73F5143D72 for ; Thu, 2 Nov 2006 22:24:13 +0000 (GMT) (envelope-from pgiessel@mac.com) Received: from [192.168.0.193] ([158.145.111.132]) (authenticated bits=0) by achilles.leela.ws (8.13.6/8.13.6) with ESMTP id kA2MO6Ig088363 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 2 Nov 2006 13:24:09 -0900 (AKST) (envelope-from pgiessel@mac.com) Message-ID: <454A7006.5030006@mac.com> Date: Thu, 02 Nov 2006 13:24:06 -0900 From: "Peter A. Giessel" User-Agent: Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.8.0.7) Gecko/20060909 Thunderbird/1.5.0.7 Mnenhy/0.7.4.0 MIME-Version: 1.0 To: Wasp King References: <20061102220009.10929.qmail@web37205.mail.mud.yahoo.com> In-Reply-To: <20061102220009.10929.qmail@web37205.mail.mud.yahoo.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: vhost does not work Apache2.2 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: Thu, 02 Nov 2006 22:24:13 -0000 On 2006/11/02 13:00, Wasp King seems to have typed: > I did a clean install of FreeBSD 6.1 (from CD), then > installed Apache2.2 using ports. Apache works fine if > I donot change anything in the config files (all it > says is "it works!")...however, > > 1). if I change the line > DocumentRoot "/usr/local/www/apache22/data" > to DocumentRoot "/usr/home/user1/www" (and disable the > above line with # in front of cours), then it shows > the message > > "Forbidden > You don't have permission to access / on this server." > this is despite the dirs has the right permissions. Did you change the first directive to also be document root? In my httpd.conf, this is around line 175, and it says: # # This should be changed to whatever you set DocumentRoot to. # > 2). I can move all the contents under /user1/www to > /usr/local/www/apache22/data and then it works > fine...howver, if I enable the vhosts, by activating > the line in httpd.conf: > > Include etc/apache22/extra/httpd-vhosts.conf > > then I get the same error! Did you make any entries in the httpd-vhosts.conf file? Are any of the directives uncommented?