Recall & Review
beginner
What is a web server?
A web server handles HTTP requests from browsers and serves static content like HTML, CSS, and images. It listens for requests and sends back files or responses.
Click to reveal answer
beginner
What is an application server?
An application server runs business logic and dynamic content. It processes requests, runs code, and generates responses, often connecting to databases.
Click to reveal answer
intermediate
How does Nginx act as a web server?
Nginx serves static files quickly and efficiently. It listens on ports like 80 or 443 and sends requested files like images or HTML pages to users.
Click to reveal answer
intermediate
How can Nginx work with an application server?
Nginx can forward requests for dynamic content to an application server (like Node.js or Python). It acts as a reverse proxy, passing requests and returning responses.
Click to reveal answer
intermediate
Why use both a web server and an application server together?
Using both lets the web server handle static files fast, while the application server focuses on running code and generating dynamic content. This improves speed and organization.
Click to reveal answer
What is the main job of a web server?
✗ Incorrect
A web server mainly serves static files such as images, HTML, and CSS to users.
Which server type processes dynamic content and runs application code?
✗ Incorrect
An application server runs code and generates dynamic content based on requests.
How does Nginx commonly interact with an application server?
✗ Incorrect
Nginx often acts as a reverse proxy, forwarding requests for dynamic content to an application server.
Which port does a web server like Nginx usually listen on for HTTP traffic?
✗ Incorrect
Port 80 is the default port for HTTP traffic handled by web servers.
Why is it beneficial to separate web server and application server roles?
✗ Incorrect
Separating roles lets each server focus on what it does best, improving speed and system organization.
Explain the difference between a web server and an application server in simple terms.
Think about what each server does when you visit a website.
You got /4 concepts.
Describe how Nginx can be used together with an application server to serve a website.
Consider how requests for images differ from requests for data.
You got /4 concepts.