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 restarting Apache
Author
Dyslexicbloke



Joined: 05 Aug 2010
Posts: 1

PostPosted: Thu 05 Aug '10 10:17    Post subject: Reverse proxy restarting Apache Reply with quote

Hi folks,
I am very new to Apache ... feel free to tell me if I am being silly anywhere.

OS Windows server 2003 (Fully updated)
C++ Runtimes installed as described in 2.2.16 download from this site.
2.2.16 installed as directed here (Actually overritten 2.2.15 - from installer)
The problem I am about to describe hasnt been affected by the upgrade.
PHP and PostgreSql installed but I dont think relavent here

I have used information found here to set up a reverse proxy, several in fact.
[The ones shown ar internet resources for testing purposes. I will be pointing at HMI's or PLC's with html interfaces.]

I have several problems but the most significant is that the server restarts when the proxy is active and mod_xml2enc.so is loaded.
This results in a blank or partally loaded page in the browser ... it also takes a long time.

[ On sites that do work there are formating issues but I expect these will be corectable with rule sets]

With the following config lines the proxy works for 'some sites' but warns xml2enc should be loaded to support none ascii coding.

LoadModule proxy_module modules/mod_proxy.so
# LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
# LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
# LoadModule proxy_connect_module modules/mod_proxy_connect.so
# LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule headers_module modules/mod_headers.so
LoadFile bin/zlib1.dll
LoadFile bin/iconv/iconv.dll
LoadFile bin/libxml2.dll
LoadModule proxy_html_module modules/mod_proxy_html.so
# LoadModule xml2enc_module modules/mod_proxy_html/mod_xml2enc.so
#
ProxyPass /hmi2/ http://www.cogentautomation.co.uk/
ProxyHTMLURLMap http://www.cogentautomation.co.uk/ /hmi2/
<Location /hmi2/>
ProxyPassReverse /
ProxyHTMLURLMap / /hmi2/
</Location>
#
ProxyPass /hmi3 http://www.apachelounge.com
ProxyHTMLURLMap http://www.apachelounge.com /hmi3
<Location /hmi3>
ProxyPassReverse /
ProxyHTMLURLMap / /hmi3
</Location>
#
ProxyPass /hmi4/ http://apache.webthing.com/
ProxyHTMLURLMap http://apache.webthing.com/ /hmi4/
<Location /hmi4/>
ProxyPassReverse /
ProxyHTMLURLMap / /hmi4/
</Location>
#
Locations hmi2 and hmi4 (work with formating errors).
Location hmi3 fails to load and complains about an unsuported charset.(Log Below)
[debug] mod_proxy_http.c(1736): proxy: start body send
[warn] [client 192.168.52.1] No i18n support found. Install mod_xml2enc if required
[debug] mod_proxy_http.c(1840): proxy: end body send

With the mod_xml2enc.so line place ..
with hmi2 and hmi4 I get 1 or more of the following errors and content may eventually load.
[debug] mod_proxy_http.c(1844): proxy: header only.
[notice] Parent: child process exited with status 3221225477 -- Restarting.

hmi3 still fails to load content but does NOT produce the restart and presents a diferent error this time from mod_xml2enc (Log Below)
[Thu Aug 05 08:32:13 2010] [debug] mod_proxy_http.c(1736): proxy: start body send
[Thu Aug 05 08:32:13 2010] [debug] mod_xml2enc.c(201): [client 192.168.52.1] Content-Type is text/html
[Thu Aug 05 08:32:13 2010] [debug] mod_xml2enc.c(270): [client 192.168.52.1] Charset ISO-8859-1 not supported by libxml2; trying apr_xlate
[Thu Aug 05 08:32:13 2010] [error] [client 192.168.52.1] Charset ISO-8859-1 not supported. Consider aliasing it?

I dont know what is but will check ...
I have read all I can find on the subject of reverse proxies under windows and tried many diferent configs.
I am now out of idears .... PLEASE can anyone help.

Thanks for reading
Al
Back to top
James Blond
Moderator


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

PostPosted: Mon 16 Aug '10 14:42    Post subject: Reply with quote

mod_xml2enc works only with UTF-8, but you try to use ISO-8859-1. See http://apache.webthing.com/mod_xml2enc/ how to use UTF-8 (xml2EncAlias)
Back to top
apforrest



Joined: 01 Sep 2010
Posts: 1

PostPosted: Wed 01 Sep '10 13:12    Post subject: Similar issue Reply with quote

Hi.

I've been confronted with a similar issue to the one mentioned above.

Was a solution found?

Andy
Back to top


Reply to topic   Topic: Reverse proxy restarting Apache View previous topic :: View next topic
Post new topic   Forum Index -> Apache