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 ?
Nginx is a HTTP server. It can't run Jar files (or any Java code).
it is not possible. However, you can configure nginx to act as a reverse proxy in front of a Tomcat server. Save this answer.
It started out as a web server designed for maximum performance and stability. In addition to its HTTP server capabilities, NGINX can also function as a proxy server for email (IMAP, POP3, and SMTP) and a reverse proxy and load balancer for HTTP, TCP, and UDP servers.
Web Performance: Is good at dealing with Java servlets, the performance with static content is lower than that of Nginx. Here Nginx is much better than Apache Tomcat. It can handle multiple requests for static and dynamic content simultaneously using as little memory as possible.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With