简体   繁体   中英

Can i deploy my .war on an nginx server

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 ?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM