[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: url redirect through dns



On Mon, Jun 11, 2001 at 11:25:11AM -0500, charles@lunarmedia.net wrote:
> > > <VirtualHost www.domain2.com>
> >
> > I used to configure mine in this manner, but the version of Apache that I
> > have now wants you to insert this directive:
> >
> > NameVirtualHost *
> >
> > and then it wants all virtual hosts to begin with:
> >
> > <VirtualHost *>
> >
> 
> 	yes. i am finding that the redirect option does not work. then
> 	again though, my apache rev is a bit antiquated, 1.3.6.

You might need to remember to redirect both domain2.com and
www.domain2.com, BTW.

For example:

<VirtualHost wisdom-at-work.com>
    Redirect / http://www.wisdom-at-work.com/
</VirtualHost>
<VirtualHost www.wisdom-at-work.org>
    Redirect / http://www.wisdom-at-work.com/
</VirtualHost>
<VirtualHost wisdom-at-work.org>
    Redirect / http://www.wisdom-at-work.com/
</VirtualHost>

That works well on 1.3.x where x>12, anyway.  YMMV on beta
and older versions. :)

--Danny, who would update your apache soon...
-
To unsubscribe, send email to majordomo@luci.org with
"unsubscribe luci-discuss" in the body.