From owner-freebsd-current Wed Feb 25 07:49:13 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id HAA09000 for freebsd-current-outgoing; Wed, 25 Feb 1998 07:49:13 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from gateman.zeus.leitch.com (gateman.zeus.leitch.com [204.187.61.193]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id HAA08992 for ; Wed, 25 Feb 1998 07:49:11 -0800 (PST) (envelope-from tholmes@zeus.leitch.com) Received: from zeus.leitch.com (0@tap.zeus.leitch.com [204.187.61.10]) by gateman.zeus.leitch.com (8.8.5/8.7.3/1.0) with ESMTP id KAA19484; Wed, 25 Feb 1998 10:49:08 -0500 (EST) Received: from bitter.zeus.leitch.com (bitter.zeus.leitch.com [204.187.61.66]) by zeus.leitch.com (8.7.5/8.7.3/1.0) with ESMTP id KAA01436; Wed, 25 Feb 1998 10:49:03 -0500 (EST) From: Tony Holmes Received: (tholmes@localhost) by bitter.zeus.leitch.com (8.8.7/8.6.9) id KAA01357; Wed, 25 Feb 1998 10:49:03 -0500 (EST) Message-Id: <199802251549.KAA01357@bitter.zeus.leitch.com> Subject: Re: DEVFS/SLICE and SOFT UPDATE patches. In-Reply-To: <19980225102152.50924@iii.co.uk> from "nik@iii.co.uk" at "Feb 25, 98 10:21:53 am" To: nik@iii.co.uk Date: Wed, 25 Feb 1998 10:49:03 -0500 (EST) Cc: tlambert@primenet.com, current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > b) Speculatively put a '/' on the end and try again. > > I don't think any web servers currently do (b), but I wouldn't stake my > life on it. Since the FreeBSD group wisely chose Apache, and if they are using a newer version (or even a slightly older one), there is a nice way to cover over the "brain-damaged" browsers ignorance and make things happily work using the rewrite module. The following two lines in the configuration file (after turning on the rewrite engine, etc.) will check to see if the request is a directory and append a trailing / if it is. You would need to check if the trailing / is missing in the first place as a precondition (this is ripped outta my config and I'm too tired to think through that part of the solution atm) RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^(.*)$ $1/ [L] Tony To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message