From e782d9cf91c4b5b92897032277c795126d404889 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 19 Oct 2023 06:36:35 +0000 Subject: Fix custom response, get rid of secondary static stralloc Signed-off-by: Laurent Bercot --- doc/tipidee-config.html | 2 +- doc/tipidee.conf.html | 45 ++++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 45 insertions(+), 2 deletions(-) (limited to 'doc') diff --git a/doc/tipidee-config.html b/doc/tipidee-config.html index c56c248..4e3433d 100644 --- a/doc/tipidee-config.html +++ b/doc/tipidee-config.html @@ -108,7 +108,7 @@ static — and that means incompressible RAM. By contrast, a cdb file is mapped read-only, so its pages are shared clean, which means it's essentially free.
  • tipideed is exposed to the network. You -want to its attack surface to be as small as possible. Taking the parsing code +want its attack surface to be as small as possible. Taking the parsing code out of it goes a long way — admittedly, having to parse HTTP in the first place is more attack surface than a simple config file can ever hope to be, but every little bit helps.
  • diff --git a/doc/tipidee.conf.html b/doc/tipidee.conf.html index 483d9d0..4af3b8b 100644 --- a/doc/tipidee.conf.html +++ b/doc/tipidee.conf.html @@ -447,7 +447,7 @@ to clients with the Content-Type: type header.
  • Example: content-type text/html .html .htm means that files ending in .html or .htm should be served as text/html.
  • tipidee already comes with a -large +large list of default Content-Type mappings; this directive should only be necessary if you're serving files with uncommon extensions or have specific needs.
  • @@ -705,5 +705,48 @@ requests received on port 443). But if you declare a redirection under the example.com domain, it will apply to requests received on any port. +
    +

    custom-response

    +
    + +

    + custom-response status file +

    + + + -- cgit v1.3.1