From 8b4d5603dfa706181b96f02dd664f27f97c9aed5 Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Mon, 2 Mar 2015 21:30:29 +0000 Subject: [PATCH] better 404 --- lib/vhost-sni-server.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/lib/vhost-sni-server.js b/lib/vhost-sni-server.js index e88b7b0..55522cd 100644 --- a/lib/vhost-sni-server.js +++ b/lib/vhost-sni-server.js @@ -115,12 +115,19 @@ module.exports.create = function (securePort, certsPath, vhostsdir) { + "" + "Cannot " + req.method - + " '" + + " 'https://" + domaininfo.hostname + '/' + (domaininfo.pathname ? (domaininfo.pathname + '/') : '') + req.url.replace(/^\//, '') + "'" + + "
" + + "
" + + "Domain: " + domaininfo.hostname + + "
" + + "App: " + domaininfo.pathname + + "
" + + "Route : " + req.url + "" + "" );