정적(공개) 파일 전송을 지원합니다. 이 미들웨어를 여러 번 연결하면서 매번 다른 디렉터리
를 지정할 수도 있습니다.
16
장에서 더 설명합니다. 연결은
app
.
use
(
express
.
static
(
정적 파
일 경로
)());
식으로 합니다.
|
vhost
|
가상 호스트
vhosts
(이 용어는 아파치에서 빌려왔습니다)를 지원하여 익스프레스에서 서브도
메인을 관리하기 쉽게 합니다.
14
장에서 더 설명합니다. 설치는
npm
install
--
save
vhost
로, 연결은
var
vhost
=
require
(
vhost
);
식으로 합니다.
10.2.
타사 미들웨어
현재는 타사 미들웨어에 대한 스토어나 색인이 없습니다. 하지만 익스프레스 미들웨어는 거
의
npm
에 존재하므로
npm
에서 ‘익스프레스(
Express
)’, ‘커넥트(
Connect
)’, ‘미들웨어
(
Middleware
)’ 등으로 검색하면 만족할 만한 결과를 얻을 겁
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.
O’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
I 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
I’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
I'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.