[TriLUG] apache question: redirect from root dir?
Jeff Groves
jgroves at krenim.org
Tue Sep 7 11:51:35 EDT 2004
On Tue, 7 Sep 2004, Brian Henning wrote:
> > I wrote:
> > >Here's a me-too on this topic:
> > >So I could use this also to take my nonprofit webspace, which is
> currently
> > >accessible as http://myserver/nonprofit
> > >and redirect it to http://nonprofitdns.org/
> > >which as we have discovered from my recent posts is a named virtual host
> on
> > >the same server? I'd do something like:
> > >
> > >Redirect permanent /nonprofit http://nonprofitdns.org/
> > >
> > Jeff replied:
> > Even better, in your virtual server definition, you can assign
> > DocumentRoot as /local/path/to/nonprofit and skip the redirection all
> > together.
> >
> > Apache will start all users off in the subdirectory directly.
>
> Yeah I did that already, what I'm wanting to do is not have people start
> accessing the site routinely from http://strutmasters.net/nonprofit (but I
> don't want to simply deny it with a 403, eg., because it's a good cause and
> I don't want to block anyone's access to it).
>
> ~B
In that case, yes, that would work well for that situation.
Jeff G.
--
========
Jeffrey A. Groves jgroves at krenim.org
Web Site: http://www.krenim.org/
More information about the TriLUG
mailing list