Date: Thu, 21 Feb 2002 11:25:32 -0800 From: "Drew Tomlinson" <drew@mykitchentable.net> To: "George Lewis" <schvin@schvin.net>, "alexus" <ml@db.nexgen.com> Cc: <freebsd-isp@FreeBSD.ORG> Subject: Re: stats for *all* webpages Message-ID: <001501c1bb0d$87951d30$f82a6ba5@lc.ca.gov> References: <000b01c1baf3$028bcc20$0d00a8c0@alexus> <20020221162521.GI30741@aegle.nexus>
next in thread | previous in thread | raw e-mail | index | archive | help
----- Original Message -----
From: "George Lewis" <schvin@schvin.net>
To: "alexus" <ml@db.nexgen.com>
Cc: <freebsd-isp@FreeBSD.ORG>
Sent: Thursday, February 21, 2002 8:25 AM
Subject: Re: stats for *all* webpages
> > is there a way in *existing* virtualhost to do something like
> >
> > Redirect ServerName stats.domain.com domain.com/stats
> >
> > is there anything like that .. or do i need to enter virtualhost for
each
> > domain (which is pain in the #$% )
>
> mod_rewrite will do all that and more. a very useful addition to
> apache.
I installed Apache from ports and took the defaults. I don't know if
this is actually part of mod_rewrite or part of the base Apache install
but it works for me. I included this "RedirectPermanent" line in a
virtual host container:
<VirtualHost *>
ServerAdmin admin@mykitchentable.net
ServerName www.mykitchentable.net
ErrorLog /var/log/error.log
CustomLog /var/log/access.log common
RedirectPermanent / http://mykitchentable.net:8080
</VirtualHost>
Hopefully this will work for you.
Drew
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001501c1bb0d$87951d30$f82a6ba5>
