Home  >  Q&A  >  body text

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?

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?

天蓬老师天蓬老师2713 days ago769

reply all(2)I'll reply

  • 高洛峰

    高洛峰2017-05-16 16:59:41

    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

    reply
    0
  • 为情所困

    为情所困2017-05-16 16:59:41

    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

    reply
    0
  • Cancelreply