httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Klaubert Herr da Silveira <>
Subject [users@httpd] Charset-lite and proxy_html example needed!
Date Tue, 29 Jun 2004 19:56:09 GMT
I'm configuring apache (2.0.40, redhat 9, compiled with mod_charset_lite) as a
reverse proxy for my internal web servers, and need to rewrite some url's
inside html and .js files on-the-fly. 

To this I'm using mod_proxy (to reverse proxy) and mod_proxy_html (to rewrite
html), the problem is that mod_proxy_html convert all html content to UTF-8,
but  .js (javascript's) files, with this I get a misconfigured page (eg, a
pop-up in js, wrong accentuation (my language have accents)).

In apacheweek, the developer of mod_proxy_html sugest to use mod_charset_lite
in this situation... I can't figure out how to put this working together.

I believe that can be a order in output filter, but I could not found any

Can anybody send a working example os mod_proxy + mod_proxy_html +

Thanks in advance, 


PS. Below some configuration that I'm using.

LoadModule proxy_module modules/
LoadModule proxy_http_module modules/
LoadModule proxy_connect_module modules/
LoadFile   /usr/lib/
LoadModule proxy_html_module modules/
LoadModule charset_lite_module modules/

DocumentRoot "/var/www/html"
CharsetSourceEnc ISO8859-1  # to catch .js files  (no success)
CharsetDefault UTF-8

AddDefaultCharset UTF-8

<VirtualHost _default_:81>
ErrorLog logs/virtual-error_log
CustomLog logs/virtual-access_log common
ProxyPass /app1/  http://internal-server/app1/
ProxyHTMLURLMap http://internal-server/app1/ /app1/
<Location /cbe/>
   ProxyPassReverse http://internal-server/app1/
   ProxyHTMLDoctype HTML Legacy
   SetOutputFilter proxy-html
                                               ProxyHTMLURLMap /app1/ /app1/
   RequestHeader unset Accept-Enconding


Do you Yahoo!?
New and Improved Yahoo! Mail - Send 10MB messages! 

The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message