Can i deploy my .war on an nginx server

user3046636 picture user3046636 · Apr 5, 2015 · Viewed 26.4k times · Source

I really love nginx for the stability and way requests are handled.

And i really love tomcat for the java and the user friendliness

Is there a way to deploy my .war on a nginx server ?

Answer

Paul H picture Paul H · Apr 5, 2015

I don't believe this is possible as nginx is not a servlet container, so it has no understanding of what a .war file is. You can configure nginx to act as a reverse proxy in front of a Tomcat server so this might get you the best of both worlds.

A quick Google search came up with this http://wiki.nginx.org/JavaServers which might give you what you're looking for.