update fallback 404
This commit is contained in:
@@ -276,7 +276,15 @@ func Start(dir string) error {
|
||||
return fmt.Errorf("failed to read www directory: %w", err)
|
||||
}
|
||||
|
||||
notFoundData := "404 Page Not Found"
|
||||
notFoundData := `
|
||||
<html>
|
||||
<head><title>404 Not Found</title></head>
|
||||
<body>
|
||||
<center><h1>404 Not Found</h1></center>
|
||||
<hr><center>fes</center>
|
||||
</body>
|
||||
</html>
|
||||
`
|
||||
if _, err := os.Stat(filepath.Join(wwwDir, "404.lua")); err == nil {
|
||||
notFoundData, err = loadLua(dir, filepath.Join(wwwDir, "404.lua"), &cfg)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user