Home  >  Q&A  >  body text

The difference between Nginx/Apache and Apache Tomcat

Nginx/Apache is a Web Server, and Apache Tomact is a servlet container I would like to ask, what are the specific differences? Because if you use Apache Tomact, you already have the function of responding to http requests

PHP中文网PHP中文网2713 days ago616

reply all(2)I'll reply

  • 某草草

    某草草2017-05-16 17:06:06

    1. Contact
      They can all be used as web servers and provide external services.

    2. Difference
      As you said:

    Nginx/Apache is a Web Server, and Apache Tomact is a servlet container

    Tomcat can parse jsp, nginx and apache are just web servers, which can be simply understood as only providing html static file services. The support of dynamic languages ​​​​such as php relies on extensions.

    To summarize: tomcat has the static file serving function of nginx and apache, and also has the jsp parsing function.

    当前多采用apache监听所有端口,然后将相应的域名用ajp13连接到tomcat,tomcat在8080端口独立运行。
    

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-16 17:06:06

    Tomcat’s request efficiency for static resources is too low. Generally, ngxin/lighttpd (apache) is used as the front end, and it just forwards jsp requests to tomcat.

    reply
    0
  • Cancelreply