better 404

This commit is contained in:
AJ ONeal 2015-03-02 21:30:29 +00:00
parent fcc8e232dc
commit 8b4d5603df
1 changed files with 8 additions and 1 deletions

View File

@ -115,12 +115,19 @@ module.exports.create = function (securePort, certsPath, vhostsdir) {
+ "<body>"
+ "Cannot "
+ req.method
+ " '"
+ " 'https://"
+ domaininfo.hostname
+ '/'
+ (domaininfo.pathname ? (domaininfo.pathname + '/') : '')
+ req.url.replace(/^\//, '')
+ "'"
+ "<br/>"
+ "<br/>"
+ "Domain: " + domaininfo.hostname
+ "<br/>"
+ "App: " + domaininfo.pathname
+ "<br/>"
+ "Route : " + req.url
+ "</body>"
+ "</html>"
);