Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 16011 invoked by uid 500); 3 Feb 2003 08:26:11 -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 15999 invoked from network); 3 Feb 2003 08:26:10 -0000 Received: from ns0a.swx.com (146.109.240.107) by daedalus.apache.org with SMTP; 3 Feb 2003 08:26:10 -0000 Received: from gate0b.unix.swx.ch (gate0b [192.168.252.145]) by ns0a.swx.com (8.12.6/8.12.6) with ESMTP id h138QLlA010060 for ; Mon, 3 Feb 2003 09:26:21 +0100 (MET) Received: from SOMEXEVS001.ex.ordersx.org (localhost [127.0.0.1]) by gate0b.unix.swx.ch (8.12.6/8.12.6) with ESMTP id h138QJ2M003936 for ; Mon, 3 Feb 2003 09:26:20 +0100 (MET) content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4910.0300 Date: Mon, 3 Feb 2003 09:26:19 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] DirectoryIndex for all directories Thread-Index: AcLLXELXrLWpeK5ATuKTfu7U8V+F2wAAIA6w Importance: normal From: "Boyle Owen" Priority: normal To: X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: RE: [users@httpd] DirectoryIndex for all directories >-----Original Message----- >From: Andrea [mailto:software@polin.it] >Sent: Montag, 3. Februar 2003 09:11 >To: users@httpd.apache.org >Subject: [users@httpd] DirectoryIndex for all directories > > >Hi, >a friend of mine asked me: >" How can I use the same index.htm file as "index" for all >subdirectories >instead of creating an index.html for each subdirectories? " Do you mean http://servername/banana/ and http://servername/mango/ should both serve the same document? There is no single directive which will do this because it is a bit unusual.. (i.e. if two distinct URLs lead to the same doc, what is the point of having distinct URLs?). However, ours is not to reason why and so I assume you have a compelling reason for wanting to do this. The simplest way I can think of is to make a symbolic link in the filesystem so: 1) put index.html at the docroot 2) put "Options FollowSymLinks" at server config level 3) in docroot/banana, do "ln -s ../index.html index.html 4) in docroot/mango, do "ln -s ../index.html index.html banana/index.html -> ../index.html mango/index.html -> ../index.html Alternatively, you could make rewrire rules. Rgds, Owen Boyle > >I answered to use >DirectoryIndex /index.htm > >on my pc it worked but on his server it doesn't work. >If he specified DirecotryIndex index.htm it works but doing >that he has to >create an index.htm for each sub-directory. > >Hope I explained it well. > >Could you help me ? > >Thanks, >:-) Andrea, Italy > > >--------------------------------------------------------------------- >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 > > This message is for the named person's use only. It may contain confidential, proprietary or legally privileged information. No confidentiality or privilege is waived or lost by any mistransmission. If you receive this message in error, please notify the sender urgently and then immediately delete the message and any copies of it from your system. Please also immediately destroy any hardcopies of the message. You must not, directly or indirectly, use, disclose, distribute, print, or copy any part of this message if you are not the intended recipient. The sender's company reserves the right to monitor all e-mail communications through their networks. Any views expressed in this message are those of the individual sender, except where the message states otherwise and the sender is authorised to state them to be the views of the sender's company. --------------------------------------------------------------------- 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