I got Apache 2.2.22 with mod_proxy and mod_proxy_ajp. Here is my configuration of mod_proxy:
ProxyRequests Off
ProxyPreserveHost On
ProxyErrorOverride On
ProxyPass / ajp://localhost:8009/
ProxyPassReverse / http://www.myservice.com/
Generally it works fine but when you look at logs of mod_proxy you can see that few http headers are missing.
Header[0] [Host] = [www.myservice.com]
Header[1] [User-Agent] = [Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:23.0) Gecko/20100101 Firefox/23.0]
Header[2] [Accept] = [text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8]
Header[3] [Accept-Language] = [q=0.94,en-US;q=0.88,en;q=0.82,en-EN;q=0.76,fr-FR;q=0.71,fr;q=0.65,en-GB;q=0.18,ru;q=0.12,en-PL;q=0.06]
Header[4] [Accept-Encoding] = [gzip, deflate]
Header[5] [Cookie] = [_ga=GA1.2.190053753.1379368584; JSESSIONID=2f9c23613e546d91f2f59b6e4d81]
But the problem is that there is no header REMOTE_ADDR and my Glassfish3 server can't detect request's remote address and returns null.
I'm not sure but maybe the problem is not with mod_proxy but with glassfish.