[CentOS] mod_proxy and html rewriting

Ray Van Dolson rayvd at bludgeon.org
Thu Feb 25 16:01:46 UTC 2010


On Thu, Feb 25, 2010 at 09:57:16AM -0600, Les Mikesell wrote:
> On 2/24/2010 11:31 PM, Joseph L. Casale wrote:
> > Looks like proxying a site that uses dynamically generated urls that include the
> > bound ip of the server needs a module to rewrite links in html. Are there any mods
> > shipped in base that can do what mod_proxy_html mod_xml2enc can for this?
> 
> I don't think so.  In later httpd versions something is included in the 
> core to do content rewriting (mod_sed?), but for now you can build the 
> mod_proxy_html module with apxs and include it.

mod_substitute is included in later Apache's and does a great job.  I
actually like it better than mod_proxy_html, since the latter has a
tendency to rewrite a _lot_ of stuff to make it "valid" HTML/XHTML.

Not that that's necessarily a terrible thing, but sometimes I just want
to change what I told it to change...

I used the SRPM from RHWAS to update to the latest Apache on EL5.

Ray


More information about the CentOS mailing list