Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 39501 invoked by uid 500); 29 Apr 2003 23:44:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 39485 invoked from network); 29 Apr 2003 23:44:58 -0000 Received: from ny3.fastmail.fm (HELO smtp.us.messagingengine.com) (66.111.4.4) by daedalus.apache.org with SMTP; 29 Apr 2003 23:44:58 -0000 Received: from www.fastmail.fm (server1.internal [10.202.2.132]) by server3.messagingengine.com (Postfix) with ESMTP id 3C09F60D2E for ; Tue, 29 Apr 2003 19:44:06 -0400 (EDT) Received: from 127.0.0.1 ([127.0.0.1] helo=www.fastmail.fm) by messagingengine.com with SMTP; Tue, 29 Apr 2003 19:44:04 -0400 X-Epoch: 1051659844 X-Sasl-enc: h2Xag30493JatfjnM7TTqQ Received: from RM505.mgmt.mcgill.ca (Toronto-HSE-ppp3775186.sympatico.ca [67.68.202.21]) by www.fastmail.fm (Postfix) with ESMTP id 1F96918EAB for ; Tue, 29 Apr 2003 19:44:04 -0400 (EDT) Date: Tue, 29 Apr 2003 19:41:48 -0400 (Eastern Daylight Time) From: Joshua Slive To: users@httpd.apache.org In-Reply-To: <20030429192625.W84363@bsdshell.dyndns.org> Message-ID: References: <000e01c30e99$ed3933c0$2800a8c0@host> <020b01c30e9c$8a532e20$0500a8c0@SleepyValley.Net> <5.2.1.1.0.20030429152616.00ad1930@raja.ucdavis.edu> <000901c30e9e$be16c210$2800a8c0@host> <20030429223158.GM11702@surreal.seattlefenix.net> <001301c30e9f$e46f3c70$2800a8c0@host> <20030429192625.W84363@bsdshell.dyndns.org> X-X-Sender: slive@www.fastmail.fm MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] complex question On Tue, 29 Apr 2003, Jimmy McDonald wrote: > How would I go about implementing a script > that the apache server executes on everything > it passes to the browser so that it scans > for certain patterns and rewrites them before > the browser gets them? > > I am thinking something with a > > RewriteMap foo prg:foo.pl > > I'm not sure how to write the Rule though. No, mod_rewrite deals only with urls, not content. The answer is essentially the same as the answer to this question: http://httpd.apache.org/docs/misc/FAQ.html#footer Although, if you are using 2.0, you can also see mod_ext_filter as another option. If you are handling any serious amount of requests, however, you will want to do this as an apache module, rather than a cgi script or ext_filter program. Joshua. --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org