caddy-just-abort-http
is a listener wrapper for Caddy that aborts incorrect HTTP requests sent to the TLS server.
This project is based on the code from caddyhttp/httpredirectlistener.go in the Caddy repository.
{
servers {
listener_wrappers {
http_just_abort {
respond "Custom content"
}
tls
}
}
}
See Also: https://caddyserver.com/docs/caddyfile/options#listener-wrappers
This project is licensed under the Apache License, Version 2.0.