Common Web servers:Apache and Nginx (Linux Platform) IIS (window platform)
Many small business small projects currently do not necessarily use a Web server, because a single application server can be supported under traffic.
In practical work, I realized the role of Web server:
1. Load Balancing
2. Proxy forwarding request, more secure, do not directly expose the application server IP to each other, because the application server has code and so on
3. The Web server can unify statistics and processing so requests, such as having log records of all visited URLs, as well as statistics.
4. The Web server can also be forwarded to different application server addresses for different URLs.
such as aaa.com/bbb/ccc.html forwarding a application server; aaa.com/ddd/ccc.html forwarding B Application Server
5. The application server can be thrown by all 503 of all error pages to the unified jump into its own set of HTML page, or to a unified error system inside the exception.