Can i deploy my .war on an nginx server Can i deploy my .war on an nginx server nginx nginx

Can i deploy my .war on an nginx server


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.


Please try either of

  1. Use Nginx as a reversed proxy in the front of Tomcat OR
  2. Use nginx-tomcat8 to embedding Tomcat into Nginx to run war