Skip to Content
한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
book

한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트

by 한성용, 이선 브라운
April 2016
Beginner to intermediate
389 pages
9h 8m
Korean
Hanbit Media, Inc.
Content preview from 한 권으로 끝내는 Node & Express: 웹사이트 구축을 위한 서버 사이드 자바스크립트
283
18
-
보안
80
에서 동작 중일 테니 포트
80
에서 앱을 시작할 수 없습니다.
두 번째는 대부분의 운영체제에서 포트
1
~
1024
을 여는 데 꽤 높은 권한을 요구한다는 겁니
다. 예를 들어 리눅스나
OS
X
컴퓨터에서 포트
80
을 통해 앱을 시작하려 하면
EACCES
에러가
일어날 겁니다. 포트
80
이나
443
(그 밖에
1025
보다 낮은 포트는 뭐든)에서 실행하려면
sudo
명령어를 써서 관리자 권한으로 실행해야 합니다. 관리자 권한이 없다면 서버를 직접 포트
80
이나
443
에서 시작할 방법은 없습니다.
서버를 직접 관리하는 게 아니라면, 호스트 계정에 루트 권한은 없을 겁니다. 그러면 포트
80
이나
443
을 사용하려 하면 어떤 일이 일어날까요? 일반적으로 호스팅 제공자들은 일종의 프록
시 서비스를 제공합니다. 이 서비스는 높은 권한으로 실행되면서, 낮은 권한의 포트에서 실행
중인 앱에 요청을 전달합니다. 다음 섹션에서 더 알아보겠습니다.
18.1.6.
HTTPS
와 프록시
이미 살펴봤듯 익스프레스에서
HTTPS
를 사용하기는 매우 쉬우며 개발할 때는 잘 동작할 겁
니다. 하지만 더 많은 트래픽을 감당할 수 있게 사이트를 확장하다 보면,
12
장에서 배운 엔진
X
같은 프록시 서버가 필요할 겁니다. 사이트를 공유 호스트 환경에서 운영한다면 요청을 애플리
케이션에 전달하는 프록시 서버가 틀림없이 있을 겁니다.
프록시 서버를 사용 중이라면 클라이언트(사용자의 브라우저)는 당신의 서버가 아니라 프록
시 서버와 통신합니다. 결국 당신의 앱
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한 권으로 끝내는 Node & Express(2판): 모던 웹을 위한 서버 사이드 자바스크립트의 모든 것

한선용, 이선 브라운

Publisher Resources

ISBN: 9788968482229