logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse Proxy with mod_proxy_html: Charset problems
Author
derQ



Joined: 14 May 2013
Posts: 5

PostPosted: Wed 15 May '13 8:09    Post subject: Reverse Proxy with mod_proxy_html: Charset problems Reply with quote

Hello,

I've installed a Apache 2.4.4 (win32) environment which is acting as a reverse proxy (mod_proxy and mod_proxy_html with mod_xml2enc)

The binary is from here. http://www.apachelounge.com/viewtopic.php?p=23902

We need mod_proxy_html because there have to be links to be fixed from the proxied content.

The proxy is functional and the sites are displayed nearly correct.
We are in germany and so we need the german "Umlauts".

And there is the problem:

On some sites are for instance forms. When the customers fill in umlauts there, they are transformed by the proxy (like ä=ä)

That is because the mod_proxy_html respectively mod_xml2enc is working just with UTF-8.
The affected sites are encoded in ISO-8859-1.

And here is the problem. I tried many arguments to force the proxy to use ISO like "ProxyHTMLCharsetOut *", "xml2EncDefault iso-8859-1" or "ProxyHTMLMeta On" but the problem remains.

I also wanted to transform the data back to ISO-8859-1 with mod_charset_lite but that module doesn't seem to work with proxied data.

I've read, that mod_proxy_html delegates internationalisation/charset support to mod_xml2enc since version 3.1.
Maybe this is my problem?

So I want to try an earlier version of the mod.
Can someone help me with that? I dont't have knowledge/tools to compile me the mod.
I want to try v 3.0(1) from mod_proxy_html.

Or does someone have an idea how I can solve the charset issues?

Greetings,
Dominik
Back to top
niq



Joined: 11 Aug 2007
Posts: 6

PostPosted: Wed 15 May '13 11:01    Post subject: Reply with quote

Can you post a URL where one can see an example of a page that, when transformed, shows a problem?

I expect some component in the chain is incorrectly configured. The startingpoint for a diagnosis should be to view the original (untransformed) contents.
Back to top
derQ



Joined: 14 May 2013
Posts: 5

PostPosted: Wed 15 May '13 13:35    Post subject: Reply with quote

I only can show you Screenshots because the reverse proxy connects customers from our campus-network to our local web-servers.

Here is one example with a form-problem. It is a phonebook-search:



I'm searching for "Müller".
Result:



This is one example.
Does this help to understand the problem?
Back to top
admin
Site Admin


Joined: 15 Oct 2005
Posts: 702

PostPosted: Wed 15 May '13 14:15    Post subject: Reply with quote

I do not think this helps, you already said it in the start post.
Back to top
derQ



Joined: 14 May 2013
Posts: 5

PostPosted: Wed 15 May '13 14:41    Post subject: Reply with quote

OK, I see. Smile

The problem should be clear I think.
But from the internet you cannot see an example page with the problem.

Is there a place where I can find mod_proxy_html binaries for download? (win32 apache 2.4)

Maybe an old version can help.
It is worth a try I think..
Back to top
derQ



Joined: 14 May 2013
Posts: 5

PostPosted: Fri 17 May '13 8:07    Post subject: Reply with quote

Could it help, when I post the apache-config?
Maybe a config-issue is the cause for my problems.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7404
Location: EU, Germany, Next to Hamburg

PostPosted: Fri 17 May '13 9:46    Post subject: Reply with quote

Sure it helps if you post your config. if you have a longer config post at pastebin.com and post here the url :)

And the binaries is at http://www.apachelounge.com/download/ ;)
Back to top
derQ



Joined: 14 May 2013
Posts: 5

PostPosted: Fri 17 May '13 11:17    Post subject: Reply with quote

Thank you for the reference to pastebin! Smile

Here is the config relevant to my problem:

http://pastebin.com/s1veUF3L

Don't wonder about the VirtualHost, the productive apache hosts more than this Reverse Proxy.

So I hope that you can understand my problem and maybe can fix it?! That would be great. Very Happy
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7404
Location: EU, Germany, Next to Hamburg

PostPosted: Sat 18 May '13 16:26    Post subject: Reply with quote

The first thing that I notice without any testing is that ProxyPass and ProxyPassReverse are not in the same context. Put them into the <Location containers. or all outside. But for clean overview I recommend the <Location container.

However that is not the problem Wink

Try ProxyHTMLMeta On

Maybe xml2EncAlias
Back to top


Reply to topic   Topic: Reverse Proxy with mod_proxy_html: Charset problems View previous topic :: View next topic
Post new topic   Forum Index -> Apache