Web Servers: What Happens After the Browser Asks
A web server is software that answers requests for web content. People also use the term for the computer running it. Its job is to receive a request and send a response, whether that's a page, a picture or a message saying something went wrong.
Your browser takes the other role, called the client: it asks for something. The browser and server exchange messages using HTTP, short for Hypertext Transfer Protocol, the rules that organize these requests and replies.
The server doesn't necessarily have a finished webpage waiting in a folder. Sometimes it has a file ready to send. Sometimes the answer must be made.
- Start tonight: the board, case, power supply and memory card are all in the box.
- Run a home lab, an ad blocker or a practice server on one small computer.
- Learn Linux hands-on without risking your main machine.
The picture and the order history
Suppose an online store has a photograph of a red mug. When a browser asks for that photograph, the server can read the stored image file and return its contents. That's static content: material already prepared before the request arrives.
Now suppose a signed-in customer asks to see their order history. The site needs to look up that customer's orders and assemble the response. This is dynamic content, generated for the request. Web-serving software can pass work to application code, the instructions that handle the store's functions.
The address helps determine which job to do. A URL, or uniform resource locator, identifies a web resource. Its path, the part after the site's name, might point to an image file or select an application function. A path that looks like a folder doesn't have to correspond to a real folder on disk.
The Apache Software Foundation explains this distinction in its introduction to web serving. Apache HTTP Server is one example of software that performs this work.
An answer can be more than a page
The response includes a status code, a number describing the result. For example, a 404 response means the requested resource wasn't found, or the server isn't willing to disclose that it exists. A response can also carry content, called its body, but a body isn't required for every response.
That makes “the server sent an answer” different from “the requested page loaded.” An error response is still a response. HTTP's request-and-response rules describe those roles and message parts.
Nor does one website necessarily equal one computer. A single computer can serve several website names, a setup called virtual hosting. Intermediaries can also sit between the browser and the server producing the site's answer, forwarding requests or responses along the way.
The broader word server describes a service role. Web serving is one particular job within it.
How a Web Page Gets to Your Screen
Protecting each part of the exchange
HTTPS is HTTP carried over a connection protected by TLS, short for Transport Layer Security. Encryption scrambles the data so someone intercepting it can't read it without the right keys. The internet standards community's TLS security guidance specifies which versions to use and which older ones to avoid.
Connection protection doesn't decide whether a customer should receive a particular order history. That decision belongs in the application. The program must enforce the right permissions before producing the answer.
The server itself also needs maintenance. Apache's security guidance separates software updates, protection of configuration files, risks in dynamically generated content and review of logs, the records the software keeps of its activity.
Those jobs meet at the same request. An encrypted connection can carry an answer generated by faulty application code. Keeping the conversation private and giving the right person the right information each need their own protection.
HTTP: The Requests and Replies That Make the Web Work

Reverse Proxies: How One Web Request Reaches Another Server

CGI: The Handoff That Turns a Web Request Into an Answer

QUOTE:
"Amateurs hack systems, professionals hack people."
