wakeboard/handle_404.sh

12 lines
268 B
Bash
Raw Normal View History

2022-02-23 13:38:39 +01:00
#!/bin/bash
body="<html>\n"
body+="<head><title>Not found</title></head>\n"
body+="<body>The requested resource $2 was not found</body>\n"
body+="</html>\n"
cat <<EOF
$($BASHSERV_DIR/header.sh -t "text/html" -l $(echo -ne "$body" | wc -c) 404)
$(echo -ne $body)
EOF