I had the same problem a year ago when a J2ME client was talking to a Python / Ruby backend. The only solution I found that did not require changes in the application or infrastructure level was to use the relatively unknown mod_proxy function.
Mod_proxy () , Content-Length, -. , , Apache. .. 80, " ", , HTTP 1.1, 81.
. :
ProxyRequests Off
<Proxy http://example.com:81>
Order deny,allow
Allow from all
</Proxy>
<VirtualHost *:80>
SetEnv proxy-sendcl 1
ProxyPass / http://example.com:81/
ProxyPassReverse / http://example.com:81/
ProxyPreserveHost On
ProxyVia Full
<Directory proxy:*>
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
Listen 81
<VirtualHost *:81>
ServerName example.com
</VirtualHost>
, .