Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 73073 invoked from network); 14 Sep 2005 17:16:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Sep 2005 17:16:04 -0000 Received: (qmail 23283 invoked by uid 500); 14 Sep 2005 17:15:52 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 23271 invoked by uid 500); 14 Sep 2005 17:15:52 -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 23258 invoked by uid 99); 14 Sep 2005 17:15:52 -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:15:52 -0700 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=DNS_FROM_RFC_ABUSE,DNS_FROM_RFC_WHOIS,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of ncmail@triad.rr.com designates 24.25.9.103 as permitted sender) Received: from [24.25.9.103] (HELO ms-smtp-04-eri0.southeast.rr.com) (24.25.9.103) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Sep 2005 10:16:02 -0700 Received: from amos (cpe-024-167-185-061.triad.res.rr.com [24.167.185.61]) by ms-smtp-04-eri0.southeast.rr.com (8.12.10/8.12.7) with ESMTP id j8EHFj1x006405 for ; Wed, 14 Sep 2005 13:15:48 -0400 (EDT) Message-Id: <4.2.2.20050914111544.00cf7ec0@pop-server.triad.rr.com> X-Sender: ncmail@pop-server.triad.rr.com X-Mailer: QUALCOMM Windows Eudora Pro Version 4.2.2 Date: Wed, 14 Sep 2005 13:16:43 -0400 To: users@httpd.apache.org From: matt-nc Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Virus-Scanned: Symantec AntiVirus Scan Engine X-Virus-Checked: Checked by ClamAV on apache.org Subject: [users@httpd] DocumentRoot for Name-based Virtual Host X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 default directory for localhost: /var/www/html. I put the following in httpd.conf: NameVirtualHost *:80 DocumentRoot /home/amos/local-web/php ServerName php-web then I added the following to the hosts file: 127.0.0.1 php-web 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 now when I put localhost or 127.0.0.1 or localhost/phpinfo.php into the browser they no longer work either. I get the Access forbidden! Error 403 message. Can someone tell me how to get this set up correctly? I would like to have some different name-based virtual hosts that will serve documents out of different directories under /home/amos/... Thanks, Matt --------------------------------------------------------------------- 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