From owner-freebsd-isp Thu Feb 21 11:25:43 2002 Delivered-To: freebsd-isp@freebsd.org Received: from relay02.roc.frontiernet.net (alteon01g.roc.frontiernet.net [66.133.130.237]) by hub.freebsd.org (Postfix) with SMTP id 5029037B402 for ; Thu, 21 Feb 2002 11:25:40 -0800 (PST) Received: (qmail 3018 invoked from network); 21 Feb 2002 19:25:34 -0000 Received: from unknown (HELO blacklamb.mykitchentable.net) ([207.173.227.80]) (envelope-sender ) by relay02.roc.frontiernet.net (qmail-ldap-1.03) with SMTP for ; 21 Feb 2002 19:25:34 -0000 Received: from tagalong (unknown [165.107.42.248]) by blacklamb.mykitchentable.net (Postfix) with SMTP id 6F4F5EE6E4; Thu, 21 Feb 2002 11:25:32 -0800 (PST) Message-ID: <001501c1bb0d$87951d30$f82a6ba5@lc.ca.gov> From: "Drew Tomlinson" To: "George Lewis" , "alexus" Cc: References: <000b01c1baf3$028bcc20$0d00a8c0@alexus> <20020221162521.GI30741@aegle.nexus> Subject: Re: stats for *all* webpages Date: Thu, 21 Feb 2002 11:25:32 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-Mimeole: Produced By Microsoft MimeOLE V6.00.2600.0000 Sender: owner-freebsd-isp@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org ----- Original Message ----- From: "George Lewis" To: "alexus" Cc: 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: ServerAdmin admin@mykitchentable.net ServerName www.mykitchentable.net ErrorLog /var/log/error.log CustomLog /var/log/access.log common RedirectPermanent / http://mykitchentable.net:8080 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