Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 16767 invoked from network); 2 Sep 2005 13:13:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 2 Sep 2005 13:13:46 -0000 Received: (qmail 20253 invoked by uid 500); 2 Sep 2005 13:13:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 20241 invoked by uid 500); 2 Sep 2005 13:13:36 -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 20227 invoked by uid 99); 2 Sep 2005 13:13:35 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:13:35 -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 [64.49.254.38] (HELO luke.segpub.com.au) (64.49.254.38) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Sep 2005 06:13:50 -0700 Received: (qmail 46999 invoked by uid 89); 2 Sep 2005 23:13:34 +1000 Received: by simscan 1.1.0 ppid: 46985, pid: 46991, t: 0.4555s scanners: clamav: 0.86.1/m:33/d:984 spam: 3.0.4 Received: from unknown (HELO ?137.43.83.191?) (137.43.83.191) by 0 with SMTP; 2 Sep 2005 23:13:33 +1000 Message-ID: <43184FFC.6080506@redry.net> Date: Fri, 02 Sep 2005 14:13:32 +0100 From: eoghan User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en MIME-Version: 1.0 To: users@httpd.apache.org References: <43183E67.2030802@redry.net> <14DC0C0A-8934-4C09-84E7-4880CFEB91A1@mimectl> <43184EE4.6060808@twilight.dk> In-Reply-To: <43184EE4.6060808@twilight.dk> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on luke.segpub.com.au X-Spam-Level: X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Subject: Re: AW: [users@httpd] virtualhost with file X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mads Rosendahl wrote: > That would be my preferred solution as well. > > Or simply specify the file as default-document for the site/folder with > DirectoryIndex? > > I never use "Options Indexes" !!! I don't want to allow directory > browsing, unless needed in special > cases. For security reasons. > > By why would you want to do it this way to begin with? It is not common > to have a pdf-file as default > document. You will only have problems with it, and confused users. And > you can't specify HTML meta > headers such as title, keywords, author and so on. > > Just some thoughts: > When you send non-html content to users, the response header > Content-Type is used by the client > to determine what to do with it, in this case "Content-Type: > application/pdf". Apache uses the filename > suffix to determine mime-type, as specified in /etc/mime.types in linux. > Will apache return the correct > Content-Type header when the requested resource is a folder? Just a > thought.... Otherwise the browser > will get really confused. Thanks for the comments. I realise this isnt a good thing to do, but Im just helping someone out... they had given a url to many users for a guidebook... The people who gave the link (printed in a document) dont think of these things. I have suggested using php header() but also noted that this will require people have a plugin so the page actually opens... Im surprised that they didnt actually use a html template for this information, since they give a web address for it, but there you go :) Thanks again for the comments! Eoghan --------------------------------------------------------------------- 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