Apache Httpd + AS9 / Glassfish
I'm trying to use AS9 (or glassfish) with apache httpd frontend. I found a solution with mod_rewrite and mod_proxy
RewriteRule ^(.*)$ http://localhost:8080/$1 [P]
But this isn't perfect, because
- the REQUEST_URI in the AS9 is just "test.jsp", not "rwtest/test.jsp" (it isn't problem if I'm using a virtualhost, not a subdirectory)
- the getRemoteAddr returns the server's IP address (127.0.0.1), not the client's.
And I saw this topic: http://forums.java.net/jive/thread.jspa?threadID=13033&tstart=90
But I'm blind, or it doesn't contain anything useful... can I use mod_jk or another connector with GF / AS9 (and is somewhere a _good_ howto about it?)?