-
Notifications
You must be signed in to change notification settings - Fork 16
/
vhost.express.txt
14 lines (11 loc) · 1.64 KB
/
vhost.express.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
VHOST
VHOST(DOMAIN, APP2) #Express MIDWR (2.0.0) that redirects APP to APP2 when requested DOMAIN.
#APP must listen() but not APP2
#DOMAIN is exact matching and can be:
# - STR, can use * stopped by "."
# - REGEXP, case-insensitive
#Populates in APP2:
# - REQ.vhost ARR, with REGEXP parenthesis or STR *
# - REQ.vhost.host[name]: requested one. If "name", includes port if requested