"Rakesh Rajan" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hello Everyone! > > I am currently using Tomcat 6 to serve all my dynamic requests ( mostly > ajax > ) and Apache frontend to serve static files. ( The existing connection > from > apache to tomcat is using mod_jk ). I have couple of questions > > 1) I read that NIO connectors are way better that normal HTTP connector. > But > since http frontend server ( apache/lighthttpd) uses ajp connectors to > connect to tomcat, is there a NIO version for the ajp connector ( that > runs > on port 8009 ) also ? >
There is an experimental NIO/AJP connector, but it is currently broken: http://issues.apache.org/bugzilla/show_bug.cgi?id=43621 However, you can use the APR/AJP connector to accomplish the same thing. > 2) Based on 1), which is a better way to achieve the connection from > apache/lighthttpd to tomcat > a) Using mod_jk ( not sure how to achieve this using lighthttpd ) OR > b) Using mod_proxy_ajp ( Again not sure what the equivalent is in > lighthttpd ) > If you check the archives, you will see that this is mostly a matter of taste unless you need a feature of one that isn't in the other (e.g. some of the LB settings for mod_jk, or playing nice with e.g. mod_deflate for mod_proxy_ajp). mod_proxy_ajp is easier to configure for simple configurations, and mod_jk is usually simplier for very complex configurations. > The constraint that I have right now is that I have only one server :( So > it > is not possible to make tomcat a standalone ( since I want > apache/lighthttpd > to serve the static files ). > > Thanks! > Rakesh > --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]