From owner-freebsd-current Wed Feb 25 13:55:50 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id NAA04097 for freebsd-current-outgoing; Wed, 25 Feb 1998 13:55:50 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from smtp02.primenet.com (smtp02.primenet.com [206.165.6.132]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id NAA04085 for ; Wed, 25 Feb 1998 13:55:48 -0800 (PST) (envelope-from tlambert@usr01.primenet.com) Received: (from daemon@localhost) by smtp02.primenet.com (8.8.8/8.8.8) id OAA20886; Wed, 25 Feb 1998 14:55:42 -0700 (MST) Received: from usr01.primenet.com(206.165.6.201) via SMTP by smtp02.primenet.com, id smtpd020840; Wed Feb 25 14:55:38 1998 Received: (from tlambert@localhost) by usr01.primenet.com (8.8.5/8.8.5) id OAA28967; Wed, 25 Feb 1998 14:55:34 -0700 (MST) From: Terry Lambert Message-Id: <199802252155.OAA28967@usr01.primenet.com> Subject: Re: DEVFS/SLICE and SOFT UPDATE patches. To: tholmes@zeus.leitch.com (Tony Holmes) Date: Wed, 25 Feb 1998 21:55:34 +0000 (GMT) Cc: nik@iii.co.uk, tlambert@primenet.com, current@FreeBSD.ORG In-Reply-To: <199802251549.KAA01357@bitter.zeus.leitch.com> from "Tony Holmes" at Feb 25, 98 10:49:03 am X-Mailer: ELM [version 2.4 PL25] 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] The difference is actually that the server is speculatively adding an index.html in the trailing / case, and not adding it in the non-/ case. A variant symbolic link would allow the colocation of a "username" to point to "~username/public_html/index.html". Other than a variant symbolic link (without which "username" can only point, as it does, to "~username/public_html"), the only other real option is hard links. The problem here is that (1) directory hard links are not allowed because they screw with inheritance, and (2) You have a problem relatvely rooting documentes, unless the index.html is not implied, but instead explicitly specified. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message