Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 99232 invoked from network); 18 Oct 2005 00:37:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Oct 2005 00:37:18 -0000 Received: (qmail 77970 invoked by uid 500); 18 Oct 2005 00:37:07 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 77957 invoked by uid 500); 18 Oct 2005 00:37: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 77944 invoked by uid 99); 18 Oct 2005 00:37:07 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 17:37:07 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [202.60.64.150] (HELO master.hostingshop.com.au) (202.60.64.150) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Oct 2005 17:37:07 -0700 X-ClientAddr: 220.253.90.1 Received: from 192.168.1.254 (220-253-90-1.QLD.netspace.net.au [220.253.90.1]) (authenticated bits=0) by master.hostingshop.com.au (8.12.11/8.12.11) with ESMTP id j9I0YO26029619 for ; Tue, 18 Oct 2005 10:34:25 +1000 From: Stuart Low To: users@httpd.apache.org In-Reply-To: <20051018001734.62596.qmail@web30302.mail.mud.yahoo.com> References: <20051018001734.62596.qmail@web30302.mail.mud.yahoo.com> Content-Type: text/plain Date: Tue, 18 Oct 2005 10:36:17 +1000 Message-Id: <1129595777.6927.27.camel@core1.inhouse.serverpeak.com> Mime-Version: 1.0 X-Mailer: Evolution 2.0.2 (2.0.2-3) Content-Transfer-Encoding: 7bit X-HostingShop-MailScanner-Information: Please contact the ISP for more information X-HostingShop-MailScanner: Found to be clean X-MailScanner-From: stuart@serverpeak.com X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] urgent configuration file help needed confused about that X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Heya, Ok, you haven't mentioned it but your paths seem to indicate it's this is on Debian. > I need to configure the name based virtual hosts(multiple websites > for single ip) and ip based virtual hosts in apache2. Ok. > I am reall got confused about the which file i need to configure > i.e /etc/apache2/apache2.conf > or /etc/apache2/site-available/default file.Please help me in this. > I want to know what is the purpose of apache2.conf and > sites-available/default file purpose. Neither. apache2.conf defines server variables. Ie. Things like which modules to load, default variables like defining what the server root is etc. You probably shouldn't bother modifying it. The default file defines the default virtual host. Ie. The virtualhost to default to if there's no match in other virtualhosts. You add your virtualhosts (preferably on a file by file basis) to files such as site- available/mydomain.conf. You add your statements etc. to those. > I am really confused now which file is important to enter tha virtual > host details. Seperate files. > If i want to change the default document root i have to change on > etc/apache2/site-available/default file that is why i got confused Yes, that's correct. Ie. you want to change the "default location to serve files from". Stuart --------------------------------------------------------------------- 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