Heh. I should've known a warrant would know what he's doing. Yeah, a mod_perl content handler would be my choice for that situation. Have fun! On Fri, 8 Apr 2005, Maldonado, Daniel CW2 CTARNG wrote: > I am using a DMZ mod_proxy server to access a backend portal on a private > network. The documents are dymamic so a module will have to do. I was > thinking about a Perl module and it seems like that may be the best > solution. > > Thank you for your feedback. > > Daniel Maldonado > Programmer Analyst > > -----Original Message----- > From: Craig Dunigan [mailto:cdunigan@xxxxxxxxxxxxx] > Sent: Friday, April 08, 2005 3:05 PM > To: users@xxxxxxxxxxxxxxxx > Subject: Re: [users@httpd] Rewrite attributes in document... > > On Fri, 8 Apr 2005, Maldonado, Daniel CW2 CTARNG wrote: > > > OK, I googled, yahooed and read enough documentation to try and solve this > > problem on my own. > > > > I am at a loss and I hope one of you can help me. > > > > I need to know if there is a way the httpd server can parse every returned > > html/xml page and replace every instance of a pattern on said page. > > > > For example, if a page contains the following tag: > > <img src="http://myhost.mydomain.com:1999/dire/myimage.jpg"> > > > > Replace every instance of that tag with: > > <img src="/dire/myimage.jpg"> > > > > Mod_rewrite and others helped with the actual URL in the address but not > > with the contents of the html/xml page. > > > > Anyone have a suggestion? > > > > Daniel Maldonado > > Programmer Analyst > > > > AFAIK, Apache by itself does nothing with the contents of a file it > serves. You can write your own content handler with the Apache API, and > make Apache do almost anything you want, but wouldn't it just be simpler > to use sed or perl to change the pages directly? Unless you're on > Windows, then I'd suggest a good web site management tool like > Dreamweaver. > > --------------------------------------------------------------------- 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@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx