diff options
Diffstat (limited to 'localwebsite/handlers/FakeRequestHandler.php')
-rw-r--r-- | localwebsite/handlers/FakeRequestHandler.php | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/localwebsite/handlers/FakeRequestHandler.php b/localwebsite/handlers/FakeRequestHandler.php new file mode 100644 index 0000000..09e03b8 --- /dev/null +++ b/localwebsite/handlers/FakeRequestHandler.php @@ -0,0 +1,20 @@ +<?php + +class FakeRequestHandler extends RequestHandler { + + public function apacheNotFound() { + http_response_code(404); + $uri = htmlspecialchars($_SERVER['REQUEST_URI']); + echo <<<EOF +<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> +<html><head> +<title>404 Not Found</title> +</head><body> +<h1>Not Found</h1> +<p>The requested URL {$uri} was not found on this server.</p> +</body></html> +EOF; + exit; + } + +}
\ No newline at end of file |