[TriLUG] apache question: redirect from root dir?

Brian Henning brian at strutmasters.com
Tue Sep 7 11:37:49 EDT 2004


> 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






More information about the TriLUG mailing list