httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zac Stevens <...@cryptocracy.com>
Subject Re: [users@httpd] Adding banners
Date Sun, 17 Aug 2003 02:06:55 GMT
On Sat, Aug 16, 2003 at 07:01:37PM -0700, Brian Dessent wrote:
> Cody Harris wrote:
> > Is there or isn't there a way to dump a file into another (i'm ignoring all
> > html rules here, all i want is a way to dump one file into another with
> > Apache).
> 
> You could use mod_rewrite to rewrite all requests to a particular
> perl/php/cgi script, with the original request as an argument.  This
> script could do whatever you want in terms of including or modifying the
> content.  However, this would mean the pages are no longer static (and
> wouldn't be cached as well) and there would be some CPU overhead of
> course.

Or, if you're using Apache 2.0, you can define an output filter to do the
same thing.  Filters can be external scripts and their presence is not
apparent to the client.  

http://httpd.apache.org/docs-2.0/filter.html


Zac

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message