summaryrefslogtreecommitdiff
path: root/bin/contrib/rc-httpd/handlers/error
diff options
context:
space:
mode:
authorPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
committerPeter Mikkelsen <petermikkelsen10@gmail.com>2024-04-07 13:25:49 +0200
commit9cb56dabb676391a9382731347e8d2b07b9437a5 (patch)
tree95302f041497679202722d9896ec1386bed2d86c /bin/contrib/rc-httpd/handlers/error
parent0a37a1cc5909e11098963267edc9654b85e7ce16 (diff)
big cleanup
Diffstat (limited to 'bin/contrib/rc-httpd/handlers/error')
-rwxr-xr-xbin/contrib/rc-httpd/handlers/error43
1 files changed, 0 insertions, 43 deletions
diff --git a/bin/contrib/rc-httpd/handlers/error b/bin/contrib/rc-httpd/handlers/error
deleted file mode 100755
index 282d870..0000000
--- a/bin/contrib/rc-httpd/handlers/error
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/rc
-# DO NOT make this script callable directly from the web!
-fn do_error{
- echo 'HTTP/1.1 '^$1^$cr
- emit_extra_headers
- echo 'Content-type: text/html'^$cr
- echo $cr
- echo '<html>
-<head>
-<title>'^$1^'</title>
-</head>
-<body>
-<h1>'^$1^'</h1>'
- echo $2
- echo '<p><i>rc-httpd at' $SERVER_NAME '</i>'
- echo '
- </body>
- </html>
- '
-}
-
-fn 401{
- do_error '401 Unauthorized' \
- 'The requested path '^$"location^' requires authorization.'
-}
-
-fn 404{
- do_error '404 Not Found' \
- 'The requested path '^$"location^' was not found on this server.'
-}
-
-fn 500{
- do_error '500 Internal Server Error' \
- 'The server has encountered an internal misconfiguration and is unable to satisfy your request.'
-}
-
-fn 503{
- do_error '503 Forbidden' \
- 'You do not have permission to access '^$"location^' on this server.'
-}
-
-do_log $1
-$1