Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 11 Jan 1997 05:27:20 +0800
From:      Peter Wemm <peter@spinner.DIALix.COM>
To:        =?KOI8-R?B?4c7E0sXKIP7F0s7P1w==?= <ache@nagual.ru>
Cc:        CVS-committers@freefall.freebsd.org, cvs-all@freefall.freebsd.org, cvs-other@freefall.freebsd.org
Subject:   Re: cvs commit: www/data README.mirror 
Message-ID:  <199701102127.FAA07968@spinner.DIALix.COM>
In-Reply-To: Your message of "Fri, 10 Jan 1997 06:07:10 %2B0300." <Pine.BSF.3.95.970110060527.301B-100000@nagual.ru> 

next in thread | previous in thread | raw e-mail | index | archive | help
=?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
> <ache@null.net>
> http://www.nagual.ru/~ache/

Cheers,
-Peter





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199701102127.FAA07968>