Clarify about the difference with web server and application server.
Web server
web servers are just to handle http requests and return static contents(HTML, CSS, JavaScript) if there are no dynamic processes.
If there are dynamic processes, execute programs like PHP or Perl by using any modules or pass requests to an application server.
Apache, Nginx, IIS
application servers handle requests from web servers and run programs like Ruby or Java, and response to web servers.
e.g.
Ruby on rails environment
Passenger, Unicorn
Java Servlet environment
Tomcat(*), Glass Fish
(*)Tomcat has a function as web server, too.
No comments:
Post a Comment