Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 75062 invoked from network); 14 Sep 2005 17:23:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 17:23:20 -0000 Received: (qmail 35650 invoked by uid 500); 14 Sep 2005 17:23:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 35619 invoked by uid 500); 14 Sep 2005 17:23:07 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 35581 invoked by uid 99); 14 Sep 2005 17:23:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 10:23:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of jslive@gmail.com designates 72.14.204.198 as permitted sender) Received: from [72.14.204.198] (HELO qproxy.gmail.com) (72.14.204.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 10:23:18 -0700 Received: by qproxy.gmail.com with SMTP id k11so32680qbf for ; Wed, 14 Sep 2005 10:23:05 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fqluY/8MQYheJZBr75i8PeWuOqbz+Ml7SQhHcSq0WZ0+Bpn4m0R/gNFKBa5fb/MxxkkGh3TAKyEvl1iK3163qY/SCqXRhjk7rSxXALFN5sFgfZLhiQrJzn+8j9dzKojFffSAhYQqcNS86YgfAptb9V5pwtkhGATZvyvQ2E7PMoE= Received: by 10.64.213.16 with SMTP id l16mr26360qbg; Wed, 14 Sep 2005 10:23:05 -0700 (PDT) Received: by 10.65.20.11 with HTTP; Wed, 14 Sep 2005 10:23:05 -0700 (PDT) Message-ID: Date: Wed, 14 Sep 2005 13:23:05 -0400 From: Joshua Slive Reply-To: jslive@gmail.com To: users@httpd.apache.org In-Reply-To: <4.2.2.20050914111544.00cf7ec0@pop-server.triad.rr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <4.2.2.20050914111544.00cf7ec0@pop-server.triad.rr.com> X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] DocumentRoot for Name-based Virtual Host X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N On 9/14/05, matt-nc wrote: > I've created a name-based virtual host in Apache 2.0.54 and am trying to > get it to serve docs out of a directory under /home instead of the defaul= t > directory for localhost: /var/www/html. >=20 > I put the following in httpd.conf: >=20 > NameVirtualHost *:80 >=20 > > DocumentRoot /home/amos/local-web/php > ServerName php-web > >=20 >=20 > then I added the following to the hosts file: >=20 > 127.0.0.1 php-web >=20 >=20 > I created a file, welcome.php and put it in /home/amos/local-web/php but > when I put http://php-web/welcome.php into the browser I get an Access > forbidden! Error 403. And what does the error_log say? >=20 > And now when I put localhost or 127.0.0.1 or localhost/phpinfo.php into t= he > browser they no longer work either. I get the Access forbidden! Error 40= 3 > message. >=20 > Can someone tell me how to get this set up correctly? I would like to ha= ve > some different name-based virtual hosts that will serve documents out of > different directories under /home/amos/... First, it looks like you haven't read the big box labled "Main host goes away" on this page: http://httpd.apache.org/docs/2.0/vhosts/name-based.html Second, you have some permissions problem. If you are using Fedora, then you can't do what you want without turning off or modifying the SELinux configuration. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org