FAQ
When doing the request for a page that is reverse-proxied, with the configuration:

ProxyPass /geser/ http://192.168.17.1/
ProxyPassReverse / http://192.168.17.1/
<Location /geser/>
ProxyPassReverse /
CharsetOptions DebugLevel=9 NoImplicitAdd
SetInputFilter XLATEIN
SetOutputFilter XLATEOUT;proxy-html;DEFLATE
CharsetSourceEnc windows-1251
CharsetDefault UTF-8

ProxyHTMLLogVerbose On
ProxyHTMLExtended On
ProxyHTMLMeta On
ProxyHTMLURLMap https://192.168.17.1/ /
ProxyHTMLURLMap https://geser.mickg.net/ /
ProxyHTMLURLMap http://192.168.17.1/ /
ProxyHTMLURLMap http://geser.mickg.net/ /
ProxyHTMLURLMap https://geser/ /
ProxyHTMLURLMap http://geser/ /
RequestHeader unset Accept-Encoding
</Location>
#The ProxyHTMLURLMap's are correct, there is mod_rewrite magic to convert /blah to /geser/blah

I get the following logs, and, well, it does not recode. (No usable charset information: using old HTTP default LATIN1)

[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(67): proxy: HTTP: canonicalising URL
//192.168.17.1/u16/mickg/
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(205): [client 192.168.17.121] uri:
/geser/u16/mickg/ file: proxy:http://192.168.17.1/u16/mickg/ method: 0 imt: (unknown) flags: P windows-1251->UTF-8
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/mod_proxy.c(454): Trying to run scheme_handler
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(1680): proxy: HTTP: serving URL
http://192.168.17.1/u16/mickg/
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(186): proxy: HTTP connecting
http://192.168.17.1/u16/mickg/ to 192.168.17.1:80
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_util.c(1139): proxy: HTTP: fam 2 socket created
to connect to 192.168.17.1
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(336): proxy: socket is connected
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(370): proxy: connection complete to
192.168.17.1:80 (192.168.17.1)
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(978): [client 192.168.17.121]
xlate_in_filter() - charset_source: windows-1251 charset_default: UTF-8
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(1514): proxy: start body send
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(820): [client 192.168.17.121]
xlate_out_filter() - charset_source: windows-1251 charset_default: UTF-8
[Mon Nov 06 19:15:07 2006] [info] [client 192.168.17.121] Content-Type is text/html
[Mon Nov 06 19:15:07 2006] [warn] [client 192.168.17.121] No usable charset information: using old HTTP default LATIN1
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(820): [client 192.168.17.121]
xlate_out_filter() - charset_source: windows-1251 charset_default: UTF-8
[Mon Nov 06 19:15:07 2006] [debug] /build/buildd/apache2-2.0.55/build-tree/apache2/modules/proxy/proxy_http.c(1574): proxy: end body send
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(978): [client 192.168.17.121]
xlate_in_filter() - charset_source: windows-1251 charset_default: UTF-8
[Mon Nov 06 19:15:07 2006] [debug] /root/apache2-2.0.55/build-tree/apache2/modules/experimental/mod_charset_lite.c(978): [client 192.168.17.121]
xlate_in_filter() - charset_source: windows-1251 charset_default: UTF-8


Any ideas?


mickg


---------------------------------------------------------------------
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@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesapache
postedNov 7, '06 at 12:20a
activeNov 7, '06 at 12:20a
posts1
users1
websitehttpd.apache.org
irc#httpd

1 user in discussion

Mickg: 1 post

People

Translate

site design / logo © 2022 Grokbase