Nginx as a reverse proxy to a Tomcat instance via the HTTP connector

ajphttpnginxtomcat

I'm dropping Apache as a reverse proxy to a Tomcat instance, mainly because it has no other purpose other than forwarding requests to the Tomcat instance.

I'm no expert at deploying Java Web applications with Tomcat and I'm wondering if I'm running in for a nasty surprise if I use Nginx to forward requests to the HTTP connector?

Best Answer

Yeah, that'll work just fine.

From the tag, I'm guessing you're using an AJP connector right now? You'll just need to make sure that your HTTP listener is working right; otherwise, there should be no problem. Nginx works great as a reverse proxy.

Related Topic