java-ee - nginx is used as the front-end server, and tomcat+apache is used as the back-end. So where is the war deployed?
天蓬老师
天蓬老师 2017-05-16 16:57:41
0
2
819

The java web project developed by the SSH framework is packaged as a war file. Is it deployed on a tomcat+apache machine? If tomcat and apache are on different machines,
Which machine is the war deployed on?

In addition, does the content in the war have nothing to do with whether there is an nginx front-end server?

天蓬老师
天蓬老师

欢迎选择我的课程,让我们一起见证您的进步~~

reply all(2)
小葫芦

war is the standard package format of JavaWeb and can only be deployed on application servers such as tomcat.
nginx can be used as a reverse proxy server.
The reverse proxy server and the application server do not need to be together.
nginx can proxy any server. Request

为情所困

1. Put the war under tomcat/webapps/

2. Static files in war can be separated from static files through Nginx’s location module to reduce server pressure

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template