(해석 또는 이해가 잘못된 부분이 있다면 댓글로 편하게 알려주세요.)
Web servers dish out billions of web pages a day. They tell you the weather, load up your online shopping carts, and let you find long-lost high-school buddies. Web servers are the workhorses of the World Wide Web. In this chapter, we:
- Survey the many different types of software and hardware web servers.
- Describe how to write a simple diagnostic web server in Perl.
- Explain how web servers process HTTP transactions, step by step.
웹 서버는 하루에 수십 억개의 웹 페이지를 처리합니다.
이것은 날씨를 알려주기도, 온라인 장바구니를 불러오기도, 오랫동안 연락이 끊긴 고등학교 친구를 찾아주기도 합니다.
웹 서버는 World Wide Web의 핵심입니다.
이번 챕터에서 우리는 다음과 같은 것들을 학습합니다.
- 다양한 유형의 소프트웨어 및 하드웨어 웹 서버
- Perl에서 간단한 진단 웹 서버를 작성하는 방법
- 웹 서버가 단계별로 HTTP 트랜잭션을 프로세싱하는 방법
Where it helps to make things concrete, our examples use the Apache web server and its configuration options.
A web server processes HTTP requests and serves responses. The term “web server” can refer either to web server software or to the particular device or computer dedicated to serving the web pages.
웹 서버는 HTTP 요청을 처리하고 응답을 제공합니다.
"웹 서버"라는 용어는 웹 서버 소프트웨어나 웹 페이지 제공을 전담하는 특정 디바이스나 컴퓨터를 지칭할 수 있습니다.
Web servers comes in all flavors, shapes, and sizes. There are trivial 10-line Perl script web servers, 50-MB secure commerce engines, and tiny servers-on-a-card. But whatever the functional differences, all web servers receive HTTP requests for resources and serve content back to the clients (look back to Figure 1-5).
웹 서버는 다양한 종류, 형태, 크기로 제공됩니다.
50MB의 보안 상거래 엔진과 카드 위의 작은 서버들로 이루어진 아주 짧은 10줄의 Perl 스크립트 웹 서버도 있습니다.
하지만 기능적으로 어떤 차이가 있든, 모든 웹 서버는 리소스에 대한 HTTP 요청을 받고 클라이언트에게 콘텐츠를 돌려줍니다.
Web servers implement HTTP and the related TCP connection handling. They also manage the resources served by the web server and provide administrative features to configure, control, and enhance the web server.
웹 서버는 HTTP 및 그와 연관된 TCP 연결 핸들링을 구현합니다.
웹 서버에 의해 제공되는 리소스를 관리하고, 웹 서버를 구성하고 제어하고 개선하기 위한 관리 기능을 제공합니다.
The web server logic implements the HTTP protocol, manages web resources, and provides web server administrative capabilities. The web server logic shares responsibilities for managing TCP connections with the operating system. The underlying operating system manages the hardware details of the underlying computer system and provides TCP/IP network support, filesystems to hold web resources, and process management to control current computing activities.
웹 서버 로직은 HTTP 프로토콜을 구현하여 웹 리소스를 관리하고 웹 서버 관리 기능을 제공합니다.
웹 서버 로직은 운영체제와 TCP 연결을 관리하는 책임까지 공유합니다.
내재하는 운영체제는 내재하는 컴퓨터 시스템의 하드웨어 정보를 관리하고 TCP/IP 네트워크 지원, 웹 리소스를 보유하는 파일 시스템, 현재의 컴퓨팅 활동을 제어할 수 있는 프로세스 처리 기능을 제공합니다.
Web servers are available in many forms:
- You can install and run general-purpose software web servers on standard com- puter systems.
- If you don’t want the hassle of installing software, you can purchase a web server appliance, in which the software comes preinstalled and preconfigured on a computer, often in a snazzy-looking chassis.
- Given the miracles of microprocessors, some companies even offer embedded web servers implemented in a small number of computer chips, making them perfect administration consoles for consumer devices.
Let’s look at each of those types of implementations.
: 웹 서버 소프트웨어나 웹 페이지 제공을 전담하는 특정 디바이스나 컴퓨터
너무 피곤해서 9시쯤부터 자다가 지금 일어난 게 레전드입니다. 베짱이는 지금부터 다시 일하겠습니다.
웹 서버는 운영체제 API를 적극적으로 활용해서 TCP/IP 네트워크와 파일 시스템 등의 서비스를 제공받기 때문에 웹 서버를 이해하기 위해서는 궁극적으로 운영체제에 대한 이해가 필요하다고 들었습니다. 오늘 동아리 면접을 진행하면서 알게 된 내용입니다. 예전에 교수님께서 운영체제를 공부하면 지금까지 따로 놀던 컴퓨터구조나 네트워크에 관한 지식들이 하나로 합쳐지는 것 같다는 느낌이 들 거라고 하셨던 게 생각이 납니다. HTTP 물론 중요하지만, 더 깊은 이해를 위해서는 그보다 더 밑바닥의 지식을 쌓는 것도 좋을 것 같습니다.