Date: Wed, 25 Feb 1998 21:55:34 +0000 (GMT) From: Terry Lambert <tlambert@primenet.com> To: tholmes@zeus.leitch.com (Tony Holmes) Cc: nik@iii.co.uk, tlambert@primenet.com, current@FreeBSD.ORG Subject: Re: DEVFS/SLICE and SOFT UPDATE patches. Message-ID: <199802252155.OAA28967@usr01.primenet.com> In-Reply-To: <199802251549.KAA01357@bitter.zeus.leitch.com> from "Tony Holmes" at Feb 25, 98 10:49:03 am
next in thread | previous in thread | raw e-mail | index | archive | help
> > 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199802252155.OAA28967>