Apache2-ModProxyPerlHtml
view release on metacpan or search on metacpan
is now fully supported, before it should break after the first space
of the replacement string and using '\s' in this replacement string
will not solve the problem as it still write 's' instead of a space.
25 Jun 2012 - Version 3.3
- Fix corruption of openxml MS Office document (docx, dotx, potx, ppsx,
pptx, xlsx and xltx). Thanks to Stefano Colanzi for the report.
- Add new directive ProxyHTMLExcludeContentType with default value to
regex: (application\/vnd\.openxml) to fix the previous issue and let
users customize the content-type exclusion regex.
- Add development code to github.com new repository:
https://github.com/darold/modproxyperlhtml
21 Dec 2011 - Version 3.2
- Fix new major issue during inflate/deflate compressed http content
introduced in last release. Thanks to Claude Durocher and Eduardo
Paez Trujillo for the report.
- Add debug messages in verbose mode to trace link substitutions in
refresh header and http content. Code with inflate/deflate calls will
Note that you can always use: RequestHeader unset Accept-Encoding
to disable the use of compressed HTTP on remote server side.
14 Dec 2011 - Version 3.1
- Fix major bug in inflate/deflate compressed http content. It appears
when ModProxyPerlHTML try to uncompressed a gzip file with multiple
file and result in compressed archive corruption. Thanks to Eduardo
Paez Trujillo for the report.
- Add support for XML content-type to be rewritten. Thanks to Claude
Durocher for the report.
- Add an Apache2/Mod_perl configuration directive to allow user defined
content type. See ProxyHTMLContentType configuration directive, with
default value to actual parsed content-type.
- Modify documentation to refect change.
- Add support to HTML5 'formaction' new attribute on input and button
elements.
11 Nov 2010 - version 3.0
- Add support to refresh in HTTP header. Thanks to Peter Stubbs
for the feature request.
- Documentation reviewed.
- Creation of a dedicated site at http://modproxyhtml.darold.net/
ModProxyPerlHtml.pm view on Meta::CPAN
PerlAddVar ProxyHTMLContentType (text\/javascript|text\/html|text\/css|text\/xml|application\/.*javascript|application\/.*xml)
If you know exactly what you are doing by editing this regexp fill free to add
the missing Content-Type that must be parsed by ModProxyPerlHTML. Otherwise drop
me a line with the content type, I will give you the rigth expression. If you don't
know about the content type, with FireFox simply type Ctrl+i on the web page.
Some MS Office files may conflict with the above ProxyHTMLContentType regex like .docx or .xlsx
files. The result is that there could suffer of replacement inside and the file will be corrupted.
to prevent this you have the ProxyHTMLExcludeContentType configuration directive to exclude certain
content-type. Here is the default value:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml)
If you have problem with other content-type, use this directive. For example, as follow:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml|application\/vnd\..*text)
this regex will prevent any MS Office XML or text document to be parsed.
Some javascript libraries like JQuery are wrongly rewritten by ModProxyPerlHtml.
The problem is that those javascript code include some code and regex that are
detected as links and rewritten. The only way to fix that is to exclude those
files from the URL rewritter by using the "ProxyHTMLExcludeUri" configuration
directive. For example:
If you know exactly what you are doing by editing this regexp fill free
to add the missing Content-Type that must be parsed by ModProxyPerlHTML.
Otherwise drop me a line with the content type, I will give you the
rigth expression. If you don't know about the content type, with FireFox
simply type Ctrl+i on the web page.
Some MS Office files may conflict with the above ProxyHTMLContentType
regex like .docx or .xlsx files. The result is that there could suffer
of replacement inside and the file will be corrupted. to prevent this
you have the ProxyHTMLExcludeContentType configuration directive to
exclude certain content-type. Here is the default value:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml)
If you have problem with other content-type, use this directive. For
example, as follow:
PerlAddVar ProxyHTMLExcludeContentType (application\/vnd\.openxml|application\/vnd\..*text)
this regex will prevent any MS Office XML or text document to be parsed.
Some javascript libraries like JQuery are wrongly rewritten by
ModProxyPerlHtml. The problem is that those javascript code include some
code and regex that are detected as links and rewritten. The only way to
fix that is to exclude those files from the URL rewritter by using the
( run in 1.937 second using v1.01-cache-2.11-cpan-524268b4103 )