Fix SPA Server and 404 on IVirtualFileSystem
RouteServer now returns NotFoundServer or another server MountableServer now can implicitly support NotFoundServer
This commit is contained in:
@@ -15,6 +15,7 @@ namespace Tesses.WebServer.ConsoleApp
|
||||
|
||||
StaticServer static_server = new StaticServer(lfs,true);
|
||||
static_server.AllowUpload=true;
|
||||
static_server.RedirectToRootInsteadOfNotFound = true;
|
||||
|
||||
HttpServerListener s = new HttpServerListener(new System.Net.IPEndPoint(ip, 24240),static_server);
|
||||
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
Hi
|
||||
@@ -0,0 +1,12 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Document</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello</h1>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user