From: Jost B. <jos...@ya...> - 2005-11-01 17:45:01
|
Hi Kevin, > I've configured the mod_jk differently I think we can ignore mod_jk for this discussion, because it is not essential for the PHP/Java Bridge. -- Unless you forward everything to tomcat, which would render Apache, PHP and PHP/Java Bridge useless. > Regardless of that, I'm confused about the request > method. The > request is a Get request, as defined by the browser > makeing the > request. Where and why would it be translated to a > Put? It's an internal operation of the bridge. Essentially you have two pools, the HTTP/PHP pool (usually at :80) and the Tomcat (JavaThread) pool (usually at tcp port :8080). For each php instance request with java code in it, the bridge allocates an instance from each pool. The instances communicate using a cps style (they pass each other's continuation). To make this work, the two pools must be accessible to the bridge, of course. "Accessible" means that they must listen on TCP ports. (The bridge also supports unix domain sockets for the local backend, but this requires that you inject a JNI library called "natcJavaBridge.so" into the java VM). > First: I don't want to run apache on port 80, > surely this port isn't hardcoded anywhere? No, of course not. > Second: What do you mean that "java cannot drop > privileges"? Privilege dropping means that one part of the server runs with suid rights while other parts run with lower privileges. POSIX requires that, when a thread changes its uid, all other threads change their id, too. After that tomcat cannot accept connections on the privileged port 80 anymore. > quite possible to configure Tomcat to answer > requests on port 80, If one wants to expose /etc/passwd and /etc/shadow to everyone on the internet, yes... > Apache is running on port 8080, though, and it leads > me to the problem I'm having. So the apache pool listens on 8080 (I thought that's the tomcat pool). On which TCP port does tomcat listen? Regards, Jost Boekemeier ___________________________________________________________ Gesendet von Yahoo! Mail - Jetzt mit 1GB Speicher kostenlos - Hier anmelden: http://mail.yahoo.de |