[TriLUG] apache question: redirect from root dir?

Jeff Groves jgroves at krenim.org
Tue Sep 7 11:28:10 EDT 2004


Brian Henning 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/
>
>  
>
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.

Jeff G.
 




More information about the TriLUG mailing list