Difference between web-server and servlet container

后端 未结 3 737
天命终不由人
天命终不由人 2021-02-02 03:18

What is the difference between \"A Web Server\" and \"A Servlet Container\"?
In general are all Web Servers Servlet(Web) Containers too or vice versa?

I have been us

3条回答
  •  独厮守ぢ
    2021-02-02 03:39

    HTTP is the Hypertext Transport Protocol. Both Apache and Tomcat will accept HTTP requests.

    The difference is that Apache is JUST an HTTP server. It serves up static HTML pages.

    Tomcat has an HTTP listener inside it, but in addition to that it has a servlet/JSP engine. It can serve up both static and dynamic HTML pages.

    You can use Tomcat without Apache.

    Apache cannot handle servlet/JSP requests without having a servlet/JSP engine bolted on top of it

提交回复
热议问题