[users@httpd] Apache module to modify content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Apache Gurus,

This is my first post and I'm hoping that this is the write place to ask this question. I've read the FAQ on http://www.catb.org/~esr/faqs/smart-questions.html and googled a bit before resorting to the mailing list. 

Here is the question.

I have the following html file.
<html><body><img src="/testme/find.jpg"></body></html>

I would like to write an Apache module that will parse this file and send the following to the browser:

<html><body><img src="http://imageserver/testme/find.jpg";></body></html>

I basically want to modify the server response before sending it back to the client.

Is this doable by creating an apache module or can someone please recommend a better way to do this? I've tried rewriting the request using RewriteRules but I would prefer to rewrite the URL on the fly before serving it out.

I've gone through the mod_include source code (for SSIs) and I'm thinking that this is one way I can do the work but wanted to check with the list to see if anybody had better ideas

Thank you in advance.

~j

-- 
___________________________________________________________
Sign-up for Ads Free at Mail.com
http://promo.mail.com/adsfreejump.htm


---------------------------------------------------------------------
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



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux