我可以在 nginx 服务器上部署我的 .war 吗 [英] Can i deploy my .war on an nginx server
问题描述
我真的很喜欢 nginx 的稳定性和方式请求被处理.
I really love nginx for the stability and way requests are handled.
而且我真的很喜欢 Java 中的 tomcat和用户友好性
And i really love tomcat for the java and the user friendliness
有没有办法在 nginx 服务器上部署我的 .war 文件?
Is there a way to deploy my .war on a nginx server ?
推荐答案
我不相信这是可能的,因为 nginx 不是 servlet 容器,所以它不了解 .war 文件是什么.您可以将 nginx 配置为充当 Tomcat 服务器前的反向代理,这样您就可以两全其美.
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.
在 Google 上快速搜索后发现了这个 http://wiki.nginx.org/JavaServers可能会给你你正在寻找的东西.
A quick Google search came up with this http://wiki.nginx.org/JavaServers which might give you what you're looking for.
这篇关于我可以在 nginx 服务器上部署我的 .war 吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!