Nginx or Apache as web server in front of Tomcat (Java app)?

just wondering which web server between Apache and Nginx is better supported from Tomcat? I'm attracted in using Nginx for the single-threaded feature. I want to deploy a Java app running on HTTPS.

Cheers


First of all: Tomcat is faster to run standalone (logically, as there is no need for proxying). It's probably not the most secure solution, but it is faster. :)

Apache can use the mod_jk connector wich utilizes AJP13, wich gives you a vast performance boost compared to regular HTTP proxying. If you really need to use a frontend then go for Apache+mod_jk.