better 404
This commit is contained in:
		
							parent
							
								
									fcc8e232dc
								
							
						
					
					
						commit
						8b4d5603df
					
				| @ -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>" | ||||
|                   ); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user