From owner-cvs-other Fri Jan 10 13:28:07 1997 Return-Path: Received: (from root@localhost) by freefall.freebsd.org (8.8.4/8.8.4) id NAA04488 for cvs-other-outgoing; Fri, 10 Jan 1997 13:28:07 -0800 (PST) Received: from spinner.DIALix.COM (spinner.DIALix.COM [192.203.228.67]) by freefall.freebsd.org (8.8.4/8.8.4) with ESMTP id NAA04468; Fri, 10 Jan 1997 13:28:02 -0800 (PST) Received: from spinner.DIALix.COM (localhost.DIALix.oz.au [127.0.0.1]) by spinner.DIALix.COM (8.8.4/8.8.4) with ESMTP id FAA07968; Sat, 11 Jan 1997 05:27:22 +0800 (WST) Message-Id: <199701102127.FAA07968@spinner.DIALix.COM> To: =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= cc: CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-other@freefall.freebsd.org Subject: Re: cvs commit: www/data README.mirror In-reply-to: Your message of "Fri, 10 Jan 1997 06:07:10 +0300." Date: Sat, 11 Jan 1997 05:27:20 +0800 From: Peter Wemm Sender: owner-cvs-other@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= wrote: > On Fri, 10 Jan 1997, Peter Wemm wrote: > > > "Andrey A. Chernov" wrote: > > > ache 97/01/09 17:11:21 > > > > > > Modified: data README.mirror > > > Log: > > > Add "UserDir disabled" to not access local users through mirror > > > > It's probably better to do something like: > > UserDir http://freefall.freebsd.org/~*/ > > > > It is not possible to use URL there, just local path > Of course you can do some trick with redirection, but it requires > more efforts. Yes it is.. I thought it was an Apache 1.1 feature, but perhaps it's 1.2? Hmm. "If not disabled, then a request for http://www.foo.com/~bob/one/two.html will be translated to: UserDir public_html -> ~bob/public_html/one/two.html UserDir /usr/web -> /usr/web/bob/one/two.html UserDir /home/*/www -> /home/bob/www/one/two.html The following directives will send redirects to the client: UserDir http://www.foo.com/users -> http//www.foo.com/users/bob/one/two.html UserDir http://www.foo.com/*/usr -> http://www.foo.com/bob/usr/one/two.html" Ie: UserDir http://freefall.freebsd.org/~*/ causes a redirect from http://www.au.freebsd.org/~jhs/foo.html to http://freefall.freebsd.org/~jhs/foo.html My memory is a little scratchy though, I seem to remember there's a problem with an extra slash appearing somewhere, we were doing this ourselves a few days ago when we moved our www CNAME. It might be either: UserDir http://freefall.freebsd.org/~ or UserDir http://freefall.freebsd.org/~* that works best. We now use a local path to a cgi script to ask people to update their bookmarks/links/etc with a link to the correct place. I didn't keep the config that used the url redirect. > -- > Andrey A. Chernov > > http://www.nagual.ru/~ache/ Cheers, -Peter