Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 44508 invoked by uid 500); 20 Mar 2002 14:14:23 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 44496 invoked from network); 20 Mar 2002 14:14:22 -0000 Received: from bull.bourse.ch (HELO bull1.bourse.ch) (194.158.1.1) by daedalus.apache.org with SMTP; 20 Mar 2002 14:14:22 -0000 Received: (from nobody@localhost) by bull1.bourse.ch (8.8.8+Sun/8.8.8) id PAA16157 for ; Wed, 20 Mar 2002 15:14:22 +0100 (MET) X-Authentication-Warning: bull1.bourse.ch: nobody set sender to using -f Received: from trifid2(172.20.196.132) by bull1 via smap (V2.1) id xma016132; Wed, 20 Mar 02 15:14:17 +0100 Received: from regulus.bourse.ch (regulus [172.20.196.148]) by trifid2.bourse.ch (8.8.8+Sun/8.8.8) with ESMTP id PAA19956 for ; Wed, 20 Mar 2002 15:14:16 +0100 (MET) Received: from bourse.ch (localhost [127.0.0.1]) by regulus.bourse.ch (8.9.3+Sun/8.9.3) with ESMTP id PAA00155 for ; Wed, 20 Mar 2002 15:14:15 +0100 (MET) Sender: obo@bourse.ch Message-ID: <3C989937.8756DDBA@bourse.ch> Date: Wed, 20 Mar 2002 15:14:15 +0100 From: Owen Boyle X-Mailer: Mozilla 4.76 [en] (X11; U; SunOS 5.8 sun4u) X-Accept-Language: en MIME-Version: 1.0 To: users@httpd.apache.org Subject: Re: 2 domain in the same root directory References: <5A13EFDC-3C0B-11D6-A940-003065E884EA@abritel.fr> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Philippe wrote: > > Hello, > > I want to configure two domain on the same root directory with for each > domain a home page. > > I create for each domain a virtual host, but when i ask for a domain, > it's always index.php who is call. > In my config, I have indexdomain1.php and indexdomain2.php. > > How can I config apache to serve the right index page for each domain ? > I must have the same root because except the index page, the others > pages are the same for both domains. Create two virtualhosts, each with the same document root (as you have already done, I think). But then, differentiate them using the DirectoryIndex directive, i.e. In VH1: ServerName domain1 DocumentRoot /path/to/common-dir DirectoryIndex indexdomain1.php in VH2: ServerName domain2 DocumentRoot /path/to/common-dir DirectoryIndex indexdomain2.php Rgds, Owen Boyle. --------------------------------------------------------------------- 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 For additional commands, e-mail: users-help@httpd.apache.org