Mod Proxy Silliness

By default the latest version of mod_proxy strips out the doc type declaration. To add it back in add

ProxyHTMLDoctype “<!DOCTYPE html PUBLIC \”-//W3C//DTD XHTML 1.0 Transitional//EN\” \”http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\”>” [Legacy]

to your proxy config file. You can make it global or site specific. I’m not sure why the authors of mod_proxy deemed it necessary to strip it out in the first place. A proxy should for the most part send the HTML through unedited. The only necessary changes should be to ensure that references are mapped properly so they go to external addresses rather than internal addresses.

Leave a comment

You must be logged in to post a comment.

ss_blog_claim=70b9168863fc97c91e6d88b40542a327 ss_blog_claim=70b9168863fc97c91e6d88b40542a327