Created by: haraldrudell
for hostname only routing:
- a default route '*' is used for a host that is not listed, or a request with no host headers
- a route can be returned by the proxy directly, for example a custom 404 page (in the router):
'localhost': { statusCode: 404,
"headers": {
"Content": "text/html"
},
"data": "<!doctype html><meta charset=\"UTF-8\"/><title>Hostname undefined</title><body><h1>Hostname undefined</h1></body>"
}
I guess you could do redirects, 500s and all sort of interesting things