From owner-freebsd-current Wed Mar 4 21:52:59 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id VAA09069 for freebsd-current-outgoing; Wed, 4 Mar 1998 21:52:59 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id VAA09037 for ; Wed, 4 Mar 1998 21:52:53 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.7/8.8.7) with UUCP id WAA27961; Wed, 4 Mar 1998 22:52:31 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id WAA24038; Wed, 4 Mar 1998 22:50:40 -0700 (MST) Date: Wed, 4 Mar 1998 22:50:40 -0700 (MST) From: Marc Slemko Reply-To: Marc Slemko To: nik@iii.co.uk cc: Terry Lambert , current@FreeBSD.ORG Subject: Re: DEVFS/SLICE and SOFT UPDATE patches. In-Reply-To: <19980225102152.50924@iii.co.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 25 Feb 1998 nik@iii.co.uk wrote: > On Wed, Feb 25, 1998 at 02:52:23AM +0000, Terry Lambert wrote: > > Use http://www.freebsd.org/~julian/ if you are using a brain-damaged > > browser. For some reason, the trailing "/" is important to the WWW > > server on FreeeBSD.org... > > > > This is a job for... Variant Symbolic Links! > > Uh, no it isn't. It's a job for people to start writing URLs properly. > > If you're referring to a directory (as the URL above is) then you must > include the trailing slash. Otherwise, the webserver thinks you're trying > to retrieve a file of that name instead. > > When the web server realises that the file is not there, it will either > > a) Return the appropriate "File not found" code to the browser > > or > > 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. > > When a server responds with (a) the browser may or may not speculatively > put a '/' on the end and resubmit the request. Most browsers do indeed do > this. Some obviously don't, and I presume these are the 'brain damaged ones' > referred to above. Erm... no. If the request doesn't have a trailing '/', then it is asking for a file in the directory above the desired directory. A web server is free to give them the correct answer that it doesn't exist. However, nearly all web servers (including Apache) will decide to be nice to the user and send a redirect to the client refering them to the URL with the trailing '/'. The client does not, should not, and must not dumbly try adding trailing '/'s. The normal cause for the case where a URL without a trailing '/' breaks but one with it works is because the server is configured incorrectly so what it thinks of as its server name and reality are different, so the client can't connect to the server name sent in the redirection. This does not depend on the client in any way, shape, or form, unless they are so dumb they both can't handle redirects automatically and don't properly display the message body when they can't handle them. "Variant Symbolic Links" are irrelevant and can not fix the problem for the same reason that the server can't just send the document instead of sending a redirect: then the client's concept of a relative URL would be based in the wrong directory. There is no need for a fix for anything because nothing is broken. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message